> 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/

Reply via email to