Problem about encode in PHP?<

liunx

Guest
Dear friend,

I need help about encoding.

When I try to use different encode field in my database, just like ISO/ECU/BIG5/GB2312..., PHP servers will shutdown immediatly. However, when I used the same language for those field, everything is ok now.

I wanted to know, whether there is another way to fix the problem, without transform them into Unicode.

Many thanks!
Martin Lauhuh?

how are you storing the data? what database, if it is mysql then where dod you get any of these "ISO/ECU/BIG5/GB2312..."Originally posted by scoutt
huh?

how are you storing the data? what database, if it is mysql then where dod you get any of these "ISO/ECU/BIG5/GB2312..."

hi scoutt,

Many thanks for you kindly reply.

In one of my case, I had to stored different language string in mysql-database. If I use those field, with PHP function mysql_*, PHP shutdown immediately.

Meanwhile, I had meet that problem in most PHP-GTK application, just like fileSelection.

I am wondering how to deal with this problem, without changging them into Unicode.

Thanks,
Martin Laulast tiem I checked there isn't any fields like that. you have to use text,bigtext or varchar. one of those will work just fine.

again, where did you get these

ISO/ECU/BIG5/GB2312...ok~ I do admire your patience.

I think I'd better show the story from head to end.

One day, I design a small website with PHP, in order to receive order from different countries.

As agreed, they are sure to write they order with themown language, useing differen encoding. For example, Jp use ECU encoding, CN use gb2312 encoding...

Meanwhile, I stored those info in mysql database, at fields of tables, as varchar/text mode.

The result, you have known it. I will try to show the php-gtk code, which almost meet this problem, after I go home.

Many thanks scoutt,
Martin Lau

ps: do you sleep? :confused:hehe yeah I sleep.

oh character encoding. that ashould not be any different than sticking text in a bigtext filed or even a text field. I know what you are saying now and text should work for you.
 
Back
Top