Click here to Skip to main content
15,891,864 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,

I need to move data from a legacy website that's built using php and mysql to a new website built by .Net and SQlServer.. Most of the database content are in Arabic.
The problem i'm facing is that the mysql db is encoded as 'latin-1', when i view the db using online ecplorer or mysql workbench it shows weird chars, but it's working fine in the old php website (seems like php has a way to convert it to proper encoding)..
But when showing data using asp.net pages it still shows weird chars..
I've tried to export the db to utf-8 but it didn't work(it only converts the rows to be added, not the one's that already exists), also I've tried adding the following meta tag to my html:
<"meta>

Thanks in advance..&>
Posted
Comments
Bernhard Hiller 1-Oct-12 4:14am    
Is there some character set mentioned in the html headers of the old php web site?
WaleedMuh 1-Oct-12 5:30am    
Yes, "<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">"
Bernhard Hiller 2-Oct-12 2:11am    
When you export the db with "Windows-1256", does it look correctly? Otherwise, some "conversion" will be required, but that might be complicated...
WaleedMuh 2-Oct-12 6:08am    
It show ? instead of letters when exported as "Windows-1256",
Can you please guide me through the conversion? I much need it.. thanks

1 solution

 
Share this answer
 
Comments
Kenneth Haugland 30-Sep-12 5:42am    
Simulated resopnse:
http://www.youtube.com/watch?v=Mvwg5u3QZMo
:-D

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900