Click here to Skip to main content
Rate this: bad
Please Sign up or sign in to vote.
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 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:
Thanks in advance..&>
Posted 29-Sep-12 23:27pm
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
Please Sign up or sign in to vote.

Solution 1

Kenneth Haugland at 30-Sep-12 5:42am
Simulated resopnse:

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

  Print Answers RSS
0 OriginalGriff 476
1 Sergey Alexandrovich Kryukov 215
2 CHill60 195
3 Afzaal Ahmad Zeeshan 145
4 TheRealSteveJudge 120
0 Sergey Alexandrovich Kryukov 9,061
1 OriginalGriff 7,920
2 Peter Leow 4,774
3 Kornfeld Eliyahu Peter 3,210
4 Maciej Los 2,176

Advertise | Privacy | Mobile
Web01 | 2.8.150327.1 | Last Updated 30 Sep 2012
Copyright © CodeProject, 1999-2015
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