Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
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 29-Sep-12 23:27pm
Comments
Bernhard Hiller at 1-Oct-12 4:14am
   
Is there some character set mentioned in the html headers of the old php web site?
WaleedMuh at 1-Oct-12 5:30am
   
Yes, "<meta http-equiv="Content-Type" content="text/html; charset=windows-1256">"
Bernhard Hiller at 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 at 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

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Kenneth Haugland at 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)



Advertise | Privacy | Mobile
Web03 | 2.8.141220.1 | Last Updated 30 Sep 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100