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 !!!
Post Reply
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

Firefox and Chrome do not show Umlaute the same way

Post 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)
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
User avatar
Otto
Posts: 4470
Joined: Fri Oct 07, 2005 7:07 pm
Contact:

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

Post by Otto »

Now with decodeURI it seems to work: name2.bezeichnung = decodeURI( aRecord[2] );
********************************************************************
mod harbour - Vamos a la conquista de la Web
modharbour.org

********************************************************************
Post Reply