One more debugging observation

$strasse:=utf8 to mac(mac to utf8("Trützschlerstraße"))

this is working

Gruß
Norbert

Am 28.06.2011 um 10:01 schrieb Norbert Pfaff:

> Thanks for your answer,
> 
> I have found a problem in the new scripts, which I´m able to reproduce.
> This is a script, where I get input from a iPhone app. The problem was, that 
> I send the streets of a city correctly  encoded in UTF-8 as jason data. So 
> the programmer of the app insisted, he sends me the selected street also in 
> UTF-8.
> 
> So now I looked what code could kill 4D. I opted for utf8 to mac.
> 
> I think it could be this line.
> 
> $strasse:=_form{"Strasse"}
> 
>>>>>>>> $strasse:=utf8 to mac(mac to iso($strasse))
> 
> 
> For me having not the app here configured to test on a local machine, I tried 
> with the browser. I don´t know which new problems this could bring, because 
> now the input is not UTF-8.
> 
> When the problem occurs it looks like in the browser.
> http://localhost/nextClearances.json?strasse=Trützschlerstraße
> 
> What happened is:
> 4D crashes when there is an ü in the streetname. Every other umlaut has no 
> problem, ä or ö or ß everything works. But if there is a ü 4D crashes.
> 
> The next step would be, to be shure, that 4D no more crashes. Because the 
> whole Service is down. Also I have no control of the server, I have to call 
> for someone to start VNC on the server. So last friday the server crashed in 
> the evenig and was down until monday morning….
> 
> 
> I think about a way to do the encoding myself in code, where I have the 
> possibility catch more errors.
> 
> Gruß
> Norbert
> 
> Am 28.06.2011 um 07:17 schrieb Aparajita Fishman:
> 
>>> So the first question is, is there a logfile only, when there is anything 
>>> to log?
>> 
>> Probably. To be honest I'm not sure. One thing to check is that the log 
>> level is set to 7 (log everything) in Active4D.ini.
>> 
>> 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/

_______________________________________________
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