Convert to Unicode
-
Hi, I need to get Unicode Values for characters of a Custom Font. can anyone point me to some resources? Thanks
"It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.
-
Hi, I need to get Unicode Values for characters of a Custom Font. can anyone point me to some resources? Thanks
"It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.
I don't know, what is a Custom font. But generally, if you want to convert characters from Windows-125* (depending of localization of the OS) to Unicode encoding, use
mbstowcs()
function. Robert-Antonio "Love, truth and electric traction must gain victory over hate, lie and diesel traction." -
I don't know, what is a Custom font. But generally, if you want to convert characters from Windows-125* (depending of localization of the OS) to Unicode encoding, use
mbstowcs()
function. Robert-Antonio "Love, truth and electric traction must gain victory over hate, lie and diesel traction."Thanks, I'll look that up.... What I meant by Custom font is an installed True Type font. I have to read some data from an Excel file and write it as XML. Now the excel file uses this TTF for Devnagari Script. It contains Hindi characters. I have to convert these into Unicode if they are to be shown correctly in the XML (Or is there another way?)
"It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.
-
Thanks, I'll look that up.... What I meant by Custom font is an installed True Type font. I have to read some data from an Excel file and write it as XML. Now the excel file uses this TTF for Devnagari Script. It contains Hindi characters. I have to convert these into Unicode if they are to be shown correctly in the XML (Or is there another way?)
"It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.
Do you have the Devangari charset in your Windows localization? Robert-Antonio "Friends come and leave, but teddybears stay in forever."
-
Do you have the Devangari charset in your Windows localization? Robert-Antonio "Friends come and leave, but teddybears stay in forever."
-
Yes I do
"It was when I found out I could make mistakes that I knew I was on to something." -Ornette Coleman "Philosophy is a study that lets us be unhappy more intelligently." -Anon.
So it's simple. If the Devangari charset is default on your system, use
mbstowcs
. When not, useMultiByteToWideChar
, where you supply the Devangari charset codepage number. See MSDN for details about these functions. Robert-Antonio