Hi all,

Oliver Wesp sent a mail some days ago that he has problems with german umlauts. I'm facing the same problem at the moment when I try to get a layer by name "Regierungspräsidien". When I use map.getLayer(0).getName() I get exact the same string - I checked the bytes. The encoding from the mapscript to java seem to work. I tried to make a new String with other encoding but I'm not sure which one is the right but without any luck.These are the bytes I get from the strings:

[82, 101, 103, 105, 101, 114, 117, 110, 103, 115, 112, 114, -28, 115, 105, 100, 105, 101, 110] --> mapscript to java [82, 101, 103, 105, 101, 114, 117, 110, 103, 115, 112, 114, -28, 115, 105, 100, 105, 101, 110] --> ISO8859_1 [82, 101, 103, 105, 101, 114, 117, 110, 103, 115, 112, 114, -28, 115, 105, 100, 105, 101, 110] --> CP1252 [82, 101, 103, 105, 101, 114, 117, 110, 103, 115, 112, 114, 63, 115, 105, 100, 105, 101, 110] --> ASCII [82, 101, 103, 105, 101, 114, 117, 110, 103, 115, 112, 114, 63, 115, 105, 100, 105, 101, 110] --> UTF-8

Any ideas how to solve this?

Thanks

Norbert

Reply via email to