Darn - ok, I just went and looked at what utf8_encode actually does
(!) and its not what we want in this case, it encodes iso 8895-1
characters as utf8 which is probably the generally useful case for
most people but doesn't apply to double byte character sets.
I really don't understand character encoding at all, but I am willing
to incorporate changes into fusion to make this work as long as it is
generic enough to work in the common cases that I deal with too.
Unfortunately I don't have the time to put into becoming educated
about this right now ...
Can you spend some time looking into these functions (and the user
comments that follow):
http://www.php.net/manual/en/function.utf8-encode.php
http://ca3.php.net/manual/en/book.iconv.php
and let us know what you find out?
Cheers
Paul
On 24-Jun-08, at 1:41 AM, D.Ootaka wrote:
Thanks, Paul
I tried to wrap the output in utf8_encode, but not good...
1. wrap $result
Selection.php / Line 144
echo utf8_encode(var2json($result));
http://www.nabble.com/file/p18084122/utf8_encode_result.png
utf8_encode_result.png
2. wrap property value
Selection.php / Line 132
for($k=0; $k<count($properties->$layerName->values[$j]); $k++){
$result->$layerName->values[$iIndice][$k] =
utf8_encode($properties->$layerName->values[$j][$k]);
}
http://www.nabble.com/file/p18084122/utf8_encode_value.png
utf8_encode_value.png
Regards.
Ootaka
Paul Spencer-5 wrote:
Um, I would expect that this is because the data coming from the
fusion backend is not being properly encoded. This came up recently
on the list and the proposed solution was to wrap output of text in
the utf8_encode function.
For the selection panel, this would probably be coming from mapguide/
php/Selection.php - if you modify this file to wrap the output in
utf8_encode and it works, please let us know.
Cheers
Paul
--
View this message in context:
http://www.nabble.com/Get-Garbled-in-SelectionPanel-%28fusion%29-tp18064719p18084122.html
Sent from the MapGuide Users mailing list archive at Nabble.com.
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users
_______________________________________________
mapguide-users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/mapguide-users