Page 1 of 1

Firefox and Chrome do not show Umlaute the same way

Posted: Mon Dec 30, 2019 8:19 am
by Otto
Hello,
Firefox and Chrome do not show Umlaute the same way. In Chrome it is working fine but not in Firefox.

Best regards,
Otto

We use following code to store Umlaute in Chrome:
function convertUmlaute( cVData )

local I := 0
*----------------------------------------------------------

cVData := STRTRAN(cVData, "%C3%A4", chr(228) )
cVData := STRTRAN(cVData, "%C3%B6", chr(246) )
cVData := STRTRAN(cVData, "%C3%BC", chr(252) )


cVData := STRTRAN(cVData, "%C3%84", chr(196) )
cVData := STRTRAN(cVData, "%C3%96", chr(214) )
cVData := STRTRAN(cVData, "%C3%9C", chr(220) )

cVData := STRTRAN(cVData, "%C3%9F", chr(223) )

return (cVData)

Re: Firefox and Chrome do not show Umlaute the same way

Posted: Mon Dec 30, 2019 11:27 am
by Otto
Now with decodeURI it seems to work: name2.bezeichnung = decodeURI( aRecord[2] );