Click here to Skip to main content
16,018,460 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have a db in which name of customer name is stored in hindi. now i want fetch that customer name and export to excel file that name.

when i fetch the data and export to excel file name converted saome other non readable lauguage like: `$5`$>`$& `$8`$. 27/08 `$.`%0 `$*`% `$0`%`$.`$?`$/`$0 `$.`%`$!`%`$`$2 `$8`$?`$8`% b `$`$. `$
Posted

1 solution

There is no difference, English or Hindi (Devanagari, actually). You only need to use Unicode everywhere. Devanagari is supported on nearly all modern systems by default. With SQL, you need to use Unicode data types. Please see: http://technet.microsoft.com/en-us/library/ms191200%28v=sql.105%29.aspx[^].

—SA
 
Share this answer
 
Comments
rupal from india 16-Sep-13 4:12am    
i don't understand the solution can u please elaborte it.......or give some example to solve the problem
Sergey Alexandrovich Kryukov 16-Sep-13 4:16am    
What part of it you don't understand?
Do you know what Unicode is? Do you know that PHP supports Unicode? Do you know how to setup database columns and their data types?
—SA
rupal from india 16-Sep-13 4:48am    
actually i got a code nd nw have to work on that m doing first time on such type of thing...........so its become difficult for me to work on that...........let me tell you my db table filed my field is cusname with collation latin1-swedish-ci type varchar
Sergey Alexandrovich Kryukov 16-Sep-13 9:01am    
Okay, very good. I cannot see your code to find out what else could be wrong. You need to make sure that you use only Unicode in all steps.
—SA

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