Share » Forums » Install & configuration » mysql 4.1.1 + charset problem +...

mysql 4.1.1 + charset problem + upgrade to mysql 4.1.11

mysql 4.1.1 + charset problem + upgrade to mysql 4.1.11

Wednesday 27 April 2005 6:45:07 am - 3 replies

Author Message

Bård Farstad

Wednesday 27 April 2005 7:07:57 am

Hi Georg,

thanks for the info.

Was the problem simply a bug in MySQL 4.1.1? Do you know exactly what it was? (wrong character set defined automatically or something like that?)

--bård

Documentation: http://ez.no/doc

Georg Franz

Wednesday 27 April 2005 8:06:35 am

Hi Bård,

I don't really figured out what caused the problem. But I can say what has happened.

If I wrote some "normal" text in the textarea (tried it also with different browsers) everything worked fine. ("This is a test" was saved correctly.) If I copied + pasted some html-code in this textarea and saved it (e.g. from Dreamweaver), the input was saved corrupted. The begin of the html-code was missing, some strange characters appeared etc. I've analyzed the source html-code - no special "strange" character inside.

But the corrupted text looked like a text when you are doing utf8_encode / decode on a string which contains latin-1 + utf-8 coded characters.
(example:
$test = utf8_encode ("ö");
$test .= "ö";)

I didn't use any charset conversion in my program. So my idea was that there is something happening on the way from php to mysql.

The next strange thing is: It happened only at this program. (I tried php 4.3.6 + php 4.3.11 / apache 2 and apache 1.3.x)

So
a) I am happy that my program is working (finally)
b) I am happy that I "only" lost 2 days + 1 day with db upgrade :-)

Best wishes,
Georg.

--
http://www.schicksal.com Horoskop website which uses eZ Publish since 2004

Paul Forsyth

Wednesday 27 April 2005 9:25:56 am

Thanks Georg,

I think i've learnt more about dbs by working through problems than by reading books ;)

But thats true for life i guess!

paul

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu