473,471 Members | 1,937 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Downgrade of MySQL

I am running into a character problem and I am seeking a little advice.

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.

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.

If I put in a new string with an apostrophe via php code on the destination
server, then retrieval of that string displays properly there.

For the old strings I have tried stripslashes, but this had no effect.

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.

In summary: On the destination system all new data will display properly.
However, old data do not.

Suggestions?

--
Shelly
Nov 13 '07 #1
5 1786
Shelly wrote:
I am running into a character problem and I am seeking a little advice.

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.

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.

If I put in a new string with an apostrophe via php code on the destination
server, then retrieval of that string displays properly there.

For the old strings I have tried stripslashes, but this had no effect.

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.

In summary: On the destination system all new data will display properly.
However, old data do not.

Suggestions?
I suspect its not the age of the Mysql, but a php/mysql config issue.

Is it magicl sashes?

Stucklehead will probably come along and tell you all you never wanted
to know..
Nov 13 '07 #2
NC
On Nov 13, 9:45 am, "Shelly" <sheldonlg.n...@asap-consult.comwrote:
>
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 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...

Cheers,
NC

Nov 13 '07 #3
The Natural Philosopher wrote:
Shelly wrote:
>I am running into a character problem and I am seeking a little
advice. 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.

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.

If I put in a new string with an apostrophe via php code on the
destination server, then retrieval of that string displays properly
there. For the old strings I have tried stripslashes, but this had no
effect. 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.

In summary: On the destination system all new data will display
properly. However, old data do not.

Suggestions?
I suspect its not the age of the Mysql, but a php/mysql config issue.

Is it magicl sashes?
When I look at the data via phpMyAdmin, I see an apostrophe. When I expand
the result I fetch via php code, it shows that sequence.
>
Stucklehead will probably come along and tell you all you never wanted
to know..
I doubt it. He thinks I am lazy and "stoooopid". Oh, and a performation in
a donkey. But, I'll welcome any and all helpful hints.

--
Shelly
Nov 13 '07 #4
NC wrote:
On Nov 13, 9:45 am, "Shelly" <sheldonlg.n...@asap-consult.comwrote:
>>
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
Nov 13 '07 #5
NC wrote:
On Nov 13, 9:45 am, "Shelly" <sheldonlg.n...@asap-consult.comwrote:
>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...
I guess the best thing for me to do is convert the column in the table from
Latin1 to UTF-8.

--
Shelly
Nov 13 '07 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Richard Shea | last post by:
Hi - I have just installed ZODB for the first time. However after I'd finished I realised that I'd installed a development release and not a stable release so I'd like to downgrade or remove the...
3
by: joshsackett | last post by:
Hi all, I was running an MSDN version of SQL 2000 Developer Edition on a server until I accidentally upgraded it to Enterprise Edition while attempting to install some Management Tools. Is it...
1
by: Matt S | last post by:
Does the liscense for the VC++.Net 2003 allow the user to purchase a downgrade to VC++.NET 2002? DO I need to buy a standard version of VC++.NET to downgrade? I need to get VC++ 2002, but I can't...
4
by: Hyo-Han Kim | last post by:
Hi.. someone built app. with VC++.NET .. But It cause error on Windows 98 SE .. No one can correct the error. So I would like to downgrade the app to VC++ 6.0 .. The application should...
2
by: heidi.mu | last post by:
Anyone knows how to downgrade wav file? For example downgrade from 22k 16-bit wav file to 8k 8-bit wav file ?
0
by: Eric | last post by:
I have downgrade discs from MS that are no longer available. Downgrade legally from VB.net to VB6. eric3@bigfoot.com
7
by: Sharon | last post by:
Hey. Any of you know a tool that can help downgrade a 2.0 application to 1.1? Thanks, Sharon.
0
by: rdraider | last post by:
Does anyone know more details about "downgrade rights". Do you need to ask MS for this right? How do you get a CD key (a legit key) for SQL 2000 if you urchase SQL 2005. From MS Licensing FAQ...
5
by: incrediblesuperdude | last post by:
Hi everybody, I have a problem with a bug in the sp1 of .Net 2.0 which is reported on this page: https://connect.microsoft.com/VisualStudio/feedback/ViewFeedback.aspx... Because of this a...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.