You are here: Re: Downgrade of MySQL « PHP Programming Language « IT news, forums, messages
Re: Downgrade of MySQL

Posted by Shelly on 11/13/07 19:12

NC wrote:
> On Nov 13, 9:45 am, "Shelly" <sheldonlg.n...@asap-consult.com> wrote:
>>
>> The client is moving his code from one server to another.
>> The destination server has MySQL 4.0.7 and the host will
>> not upgrade. The source server has MySql 4.1.22.
>
> And what are the default character sets on the two servers?

On the destination it IS UTF-8. On the source, I guess it is Latin. (It
says en-us)

>
>> On the source server a string with an apostrophe that was
>> written to the database displays properly. Porting those
>> data to the destination site, and using the same code,
>> produces strange results. For example, the apostrophe
>> (value=39) displays as the characters for the sequence
>> with values of 226, 128, 153.
>
> Which is the Unicode rendition of &rsquo;...
>
>> This is not the only situation. The word cafe, for
>> example, with the (whatever-kind-it-is) accent also
>> displays poorly ont the destination server.
>
> Another reason to suspect a character set problem...
>
>> In summary: On the destination system all new data will
>> display properly. However, old data do not.
>>
>> Suggestions?
>
> Three: (1) character set, (2) character set, and (3) character set. I
> would guess that the source server is configured with Latin-1 (or
> similar) default encoding, while the destination server is configured
> with UTF-8...

It seems that you are right on. Now I have to figure out the conversions.

--
Shelly

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация