form data encoding problem...
Posted: Mon Sep 20, 2004 5:34 pm
my system:winxp+apache1.3+php4.3.5+IE+firefox
i'm recieving form data which might contain characters from different languages and save it to file...
recently i ran into problem...
my form has: accept-charset="utf-8"
i'll take for example two completely different character sets:
hebrew and russian...
first case: i write in form ONLY hebrew
-when i check the file, i see that these characters became russian characters...(not good
)
second case: i write in form hebrew and russian
-when i check the file i see both russian and hebrew characters(that is everything as it should be)
i did the same test with firefox and the file in both cases looks like it should be... there is hebrew along russian
(it is probably related to how IE encodes form data before it sends it to server...
if that's the cause.. i don't know how to solve this
)
can anyone please help me on this?
thanks
i'm recieving form data which might contain characters from different languages and save it to file...
recently i ran into problem...
my form has: accept-charset="utf-8"
i'll take for example two completely different character sets:
hebrew and russian...
first case: i write in form ONLY hebrew
-when i check the file, i see that these characters became russian characters...(not good
second case: i write in form hebrew and russian
-when i check the file i see both russian and hebrew characters(that is everything as it should be)
i did the same test with firefox and the file in both cases looks like it should be... there is hebrew along russian
(it is probably related to how IE encodes form data before it sends it to server...
if that's the cause.. i don't know how to solve this
can anyone please help me on this?
thanks
