473,403 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,403 software developers and data experts.

Problem with accent Import to MySQL/Linux from MySQL Windows

Hi,

I've been asked to transfert a database from a webhoster to another. I think
the database is on a windows box but I'm not 100% shure. The webhoster says
it provides combined hosting on NT/Linux Servers.
After exporting the database with phpMyAdmin I tried to import it to a Linux
server with the mysql>source file.sql command via a ssh access (the file is
40 Mbytes so phpMyAdmin is useless). Everything seemed ok but all accented
characters (à é î ...) and some other special characters were replaced by
"?". I search the net and find somewhere that file from windows might need
to be convert to utf8 before importing them so I tried to convert the file
with iconv then re-import the file. Once again everything seemed to work
fine. The accent problem was solve but another one showed-up. The database
stores some html code where accent and special characters are represented in
their html form like this è or č for "è", now all these have
been replaced by other characters like ©Ã instead of é. When I import
the files(not in utf8) to a windows machine with mysql>source file.sql
command, everything is normal.

Any ideas how to solve this ?

Thanks,
Dae
Sep 4 '05 #1
3 3947
Problem Solved...


"Daedalus.OS" <ar**************@videotron.ca> wrote in message
news:NZ*********************@weber.videotron.net.. .
Hi,

I've been asked to transfert a database from a webhoster to another. I
think the database is on a windows box but I'm not 100% shure. The
webhoster says it provides combined hosting on NT/Linux Servers.
After exporting the database with phpMyAdmin I tried to import it to a
Linux server with the mysql>source file.sql command via a ssh access (the
file is 40 Mbytes so phpMyAdmin is useless). Everything seemed ok but all
accented characters (à é î ...) and some other special characters were
replaced by "?". I search the net and find somewhere that file from
windows might need to be convert to utf8 before importing them so I tried
to convert the file with iconv then re-import the file. Once again
everything seemed to work fine. The accent problem was solve but another
one showed-up. The database stores some html code where accent and special
characters are represented in their html form like this &egrave; or č
for "è", now all these have been replaced by other characters like ©Ã
instead of &eacute;. When I import the files(not in utf8) to a windows
machine with mysql>source file.sql command, everything is normal.

Any ideas how to solve this ?

Thanks,
Dae

Sep 5 '05 #2
On Mon, 5 Sep 2005 18:01:26 -0400, "Daedalus.OS"
<ar**************@videotron.ca> wrote:
Problem Solved...


Please tell us - for the archives...
--
Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>
Sep 6 '05 #3

"David Quinton" <us****************@REMOVETHISBITbizorg.co.uk> wrote in
message news:me********************************@4ax.com...
On Mon, 5 Sep 2005 18:01:26 -0400, "Daedalus.OS"
<ar**************@videotron.ca> wrote:
Problem Solved...

Please tell us - for the archives...


Finally it wasn't MySQL but apache. After some verification I noticed that
internally the database was perfect. Apache was set with DefaultCharset
utf-8. we changed it to iso8859-1 and the problem was solved.
Locate your Mobile phone: <http://www.bizorg.co.uk/news.html>
Great gifts: <http://www.ThisBritain.com/ASOS_popup.html>

Sep 6 '05 #4

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

Similar topics

3
by: Abby | last post by:
I have an application that is written in php/mysql on a Linux platform and need to transfer hosts. This is a session based application and I don't know a lot about php/Linux/mysql, but can get by....
0
by: Bruce Davis | last post by:
I'm having a problem on windows (both 2000 and XP) with a multi-threaded tkinter gui application. The problem appears to be a deadlock condition when a child thread pops up a Pmw dialog window in...
2
by: Gurpreet Sachdeva | last post by:
I am using Mysql version 5.0.2-alpha on RedHat 9.0 (python2.2) When I try to import MySQldb I get: Python 2.2.2 (#1, Feb 24 2003, 19:13:11) on linux2 Type "help", "copyright", "credits" or...
0
by: adrian GREEMAN | last post by:
When I try to import a text file with new data for an existing table I get the error "1148 - the used command is not allowed with this MySQL version." I have tried with both PHPMyAdmin2.3 and...
7
by: phillip.s.powell | last post by:
We're looking at a GUI interface for our MySQL DB and I am interested in MySQL Administrator, however, one of our requirements is to be able to import/export databases. Is this possible or do I...
5
by: Eric Smith | last post by:
I'm trying to use Python 2.4.3 and pywin32-209 to access a MySQL database on Windows Server 2003 Standard Edition, and not having much luck. It seems like parts of the MySQLdb module are not...
1
by: Carlos Pena | last post by:
I have MySQL server running fine on Linux Server. I need to connect Windows workstations to the MySQL server. I installed MySQL ODBC 3.51.14 driver. When i try to connect the ODBC allways returns...
6
Atli
by: Atli | last post by:
This is an easy to digest 12 step guide on basics of using MySQL. It's a great refresher for those who need it and it work's great for first time MySQL users. Anyone should be able to get...
2
by: dmstn | last post by:
Hey! I've got a little problem. I have to make a web site for a university essay. I curently have to create a search engine. Users can enter a hotel name in a search bar and results have to appear in...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...

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.