Text Encoding
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
I have some legacy drawings with texts using alegacy .shx font, with extended codes for the Hebrew alphabet.
The codes are from 0x80 thru 0x9a for the 26 Hebrew letters.
The texts display fine in R2004 and above.
Now if I try extracting the DBText.TextString of the text object, I get gibberish.
Tried everything to convert the string, without success.
I have a lisp function which performs the needed conversion by adding 0x60 to each character value, but, while it works fine in lisp, it fails in C#.
Am I missing something?
BTW, if I change the text font to a Windows font, it will display the same gibberish and only after running the lisp function mentioned above will it display correctly and then, of course, the extracted string will be OK too.
The following is the kind of string DBText.TextString returns on the original text object (it should be Hebrew, but it's obviously not):
316 „ˆ‘…˜‰ ‡” ‰…”‰–
It seems that TextString forces the extended ASCII to Unicode and doing a poor job.
Thanks,
alex