By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,905 Members | 2,075 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,905 IT Pros & Developers. It's quick & easy.

The unknown encoded in emf->EMR_EXTTEXTOUTW->EmrText->OutputString

P: 1
I extracted EMR_EXTTEXTOUTW elements from an emf file,then extracted EmrText elements from EMR_EXTTEXTOUTW elements,then extracted OutputString elements from EmrText elements.according to definition,OutputString's encoded is 16-bit Unicode UTF16-LE characters.

But some OutputStrings extracted from emf couldn't encode by Unicode UTF16-LE

compare to pictures by emf,I found some comparisons to this unknown

encoded ,"13 00" ->"0","14 00"->"1",but unicode "0"is"30 00","1"is"31 00"
what is the unknown encode?

eg: EmrText
A8 00 00 00 38 00 00 00 02 00 00 00 4C 00 00 00 10 00 00 00 00 00 00 00 00 00 00 00 FF FF FF FF FF FF FF FF 50 00 00 00 17 00 13 00 10 00 00 00 00 00 00 00
and it's OutputString is "40" ,but it's code is "17 00 13 00" ,Is it unicode ?

The structure of EmrText was defined in here

msdn.microsoft.com/en-us/library/cc230576.aspx
Apr 24 '16 #1
Share this question for a faster answer!
Share on Google+

Post your reply

Sign in to post your reply or Sign up for a free account.