Many thanks for your explanation. In the meantime I noticed, that utf8 to mac 
chrashed not with a new copy of 4D ( ! ) , it only stopped with the string at 
the beginning of the malformed. :-)
Later I was doing tricks, I looked what comes back from the URL decoded form 
variables, and changed the Umlauts with Replace string.
Now I will try the easy way.

Many thanks.

Gruß
Norbert Pfaff

Am 15.04.2011 um 14:39 schrieb Aparajita Fishman:

>> It´s really not easy, because following code crashes 4D. I have restarted. 
>> Same result
>> 
>> $strasse:=_form{"Strasse"}
>> $strasse:=utf8 to mac($strasse)
> 
> You have to do this:
> 
> $strasse:=utf8 to mac(mac to iso($strasse))
> 
> The reason is that Active4D 4.5 assumes that query parameters are encoded as 
> ISO-8859-1. So it is converting %C3%9F from ISO to Mac, but in this case it 
> isn't ISO, it's actually UTF-8. To get the original UTF-8 back you have to 
> convert back to ISO, then you can safely convert from UTF-8 to Mac.
> 
> It is crashing without 'mac to iso' because 'utf8 to mac' is being given 
> malformed UTF-8.
> 
> Many thanks,
> 
>   Aparajita
>   www.aparajitaworld.com
> 
>   "If you dare to fail, you are bound to succeed."
>   - Sri Chinmoy   |   www.srichinmoy.org
> 
> _______________________________________________
> Active4D-dev mailing list
> [email protected]
> http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
> Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

_______________________________________________
Active4D-dev mailing list
[email protected]
http://mailman.aparajitaworld.com/mailman/listinfo/active4d-dev
Archives: http://mailman.aparajitaworld.com/archive/active4d-dev/

Reply via email to