FiveTech Support Forums

FiveWin / Harbour / xBase community
Board index mod_harbour Firefox and Chrome do not show Umlaute the same way
Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Firefox and Chrome do not show Umlaute the same way
Posted: Mon Dec 30, 2019 08:19 AM

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)

Posts: 6984
Joined: Fri Oct 07, 2005 07:07 PM
Re: Firefox and Chrome do not show Umlaute the same way
Posted: Mon Dec 30, 2019 11:27 AM

Now with decodeURI it seems to work: name2.bezeichnung = decodeURI( aRecord[2] );

Continue the discussion