Firefox and Chrome do not show Umlaute the same way

mod_harbour is an Apache module that allows to run PRGs directly on the web !!!

Firefox and Chrome do not show Umlaute the same way

Postby Otto » Mon Dec 30, 2019 8: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)
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm

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

Postby Otto » Mon Dec 30, 2019 11:27 am

Now with decodeURI it seems to work: name2.bezeichnung = decodeURI( aRecord[2] );
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org
https://www.facebook.com/groups/modharbour.club
********************************************************************
User avatar
Otto
 
Posts: 6327
Joined: Fri Oct 07, 2005 7:07 pm


Return to mod_harbour

Who is online

Users browsing this forum: No registered users and 1 guest