<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2604" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>OK - I think i've just worked out my Legend issue - 
I forgot to put an ENCODING entry in the&nbsp;legend's LABEL&nbsp;section (set 
to UTF-8).</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>But my questions re: the scalebar still 
stands.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>Steve</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
  <DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
  <DIV 
  style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B> 
  <A title=steve.hall@mercatorgeosystems.co.uk 
  href="mailto:steve.hall@mercatorgeosystems.co.uk">Steve Hall</A> </DIV>
  <DIV style="FONT: 10pt arial"><B>To:</B> <A 
  title=mapserver-users@lists.umn.edu 
  href="mailto:mapserver-users@lists.umn.edu">mapserver-users@lists.umn.edu</A> 
  </DIV>
  <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, February 23, 2005 3:25 
  PM</DIV>
  <DIV style="FONT: 10pt arial"><B>Subject:</B> Unicode legend and scalebar 
  text?</DIV>
  <DIV><BR></DIV>
  <DIV><FONT face=Arial size=2>Hi all,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I've successfully been using the new ENCODING map 
  file setting to successfully display Chinese annotation on my maps - and it 
  works excellently!&nbsp; However, i'd also like the Legend and Scalebar to 
  have some kind of support for unicode character sets &amp; localization in 
  general.&nbsp; Is this possible?&nbsp; I'm *not* using the HTML legend in this 
  case...</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>I seem to remember reading somewhere that .map 
  files must always be ASCII and not unicode.&nbsp; Is this 
  true?&nbsp;&nbsp;Under this assumption </FONT><FONT face=Arial size=2>I have 
  tried to use PHP/MapScript to dynamically change the class name to the 
  appropriate unicode value.&nbsp; This seems to "half work".&nbsp; I am getting 
  chinese characters in the legend but only half the number I would 
  expect.&nbsp; Sounds to me like some code somewhere is assuming that the 
  number of characters is the same as the number of bytes inside the MapServer 
  internals.&nbsp; Can anyone comment on this - or should I post this to 
  mapserver-dev perhaps?</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Also is it possible to change the "mi" (for 
  example) on the scalebar to some "localized" value?&nbsp; Additionally can the 
  "." character be altered as some European countries use a comma instead of a 
  full-stop.</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Many thanks,</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2>Steve H</FONT></DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
  <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV></BLOCKQUOTE></BODY></HTML>