maverick5x Posted December 14, 2006 Share Posted December 14, 2006 Hello all,I am trying to add arabic content inside some insert statements into mysql through phpMyAdminWhen i import this file that includes the sql statements the data are imported but with problemsThe default server collation is UTF8The tables' collation is cp1256(arabic(windows))The fields that contain text such as Text,varchar are cp1256_general_cibut when i select from the tables the data retrieved appear as question marks instead of original letters although the application sets the page encoding to arabic windows.I have tried several things which did not work and wondering where the problem can be.I am requesting your help hereThanks in advance. Quote Link to comment Share on other sites More sharing options...
btherl Posted December 15, 2006 Share Posted December 15, 2006 Collation order defines the order in which data is sorted, but not the format in which it's stored. That's a question of "character set" and "character encoding", not "collation order". I can't help you with that in mysql, but that should point you in the right direction.One safe but inefficient option is to encode your data, for example with urlencode. That will armor it so it can be stored in virtually any character set. But you will have to urldecode it every time you fetch it. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.