473,788 Members | 2,733 Online
Bytes | Software Development & Data Engineering Community
+ 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 1803
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.comwrot e:
>
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.comwrot e:
>>
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.comwrot e:
>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
1794
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 current installation and start again. I installed via a Windows installer from which I could extract a list of files and then manually remove (there are 290 files) but is there some less labourious way of removing a module ? Thanks
3
2523
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 possible to downgrade it back to Dev Edition? Thanks, Josh
1
1510
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 find it locally. Downgrading is an option, but if the DLE licesnse doen't allow me to downgrade I will have to keep looking for a standard version.
4
1326
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 be complied with VC++6.0 again..
2
3360
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
3155
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
1850
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
3109
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 at: http://www.microsoft.com/sql/howtobuy/faq.mspx Q. How do I downgrade to SQL Server 2000?
5
1895
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 program I am using is not functioning well because of it: mscorlib.dll 2.0.50727.832 on the system without the service pack is
0
9498
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10370
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10113
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9969
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8995
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5538
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4074
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3677
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2896
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.