Solved

What is the logic for representing Unicode hex character 0419 as 0xD0 0x99 in Word 2007?

Posted on 2009-07-06
3
248 Views
Last Modified: 2012-05-07
If I insert Unicode character 0419 (hex) in a Word 2007 document and then look at its byte representation in the document.xml file, it appears as <0xD0> <0x99>.

What is the logic behind this conversion?

0
Comment
Question by:wjm013
  • 2
3 Comments
 
LVL 39

Expert Comment

by:itsmeandnobodyelse
ID: 24786005
>>>> I insert Unicode character 0419 (hex) in a Word 2007
How exactly you were doing that?

>>>> it appears as <0xD0> <0x99>.
How do you know it is the character you entered as 0419?

>>>> What is the logic behind this conversion?
Don't know. As far as I could see there is 0x0419 is quite a different character than 0xD099 (or 0x99D0 if the XML prints the bytes from left to right.


I did similar to you recently but I checked the representation in the binary .doc file using the hex editor of VS. Here the hex representations of the UNICODE chars from Lucida Unicode font were prettyly matching with that documented in the charts.
0
 

Author Comment

by:wjm013
ID: 24787278
>>>> I insert Unicode character 0419 (hex) in a Word 2007
>>>>How exactly you were doing that?
1 - Opened a Word 2007 file, chose Insert Symbol and Arial Unicode MS, chose "from Unicode (hex)", navigated to 0419 and inserted it.

2 - Saved the Word 2007 file.

3 - Added ".ZIP" to the end of the filename.

4 - Extracted the Zip files to a separate directory.

5 - Opened "document.xml" in a text editor.

6 - Navigated to the 0419 character, , and chose to view the binary which is "D0 99"
0
 

Accepted Solution

by:
wjm013 earned 0 total points
ID: 24797844

The "D0 99" represents the UTF-8 translation of the 0419 character as specifed
in the XML tag at the top of document.xml:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Like many others, we try and discourage users from printing documents unnecessarily and instead send or share them electronically. However, this doesn't always work and documents are still printed. With this simple solution, if the user tries to …
It is often necessary in this forum and others to illustrate Word fields as text with the field delimiters replaced with the curly brackets that the delimiters resemble when field codes are being displayed on the document. This means that the text c…
This video walks the viewer through the process of creating envelopes and labels, with multiple names and addresses. Navigate to the “Start Mail Merge” button in the Mailings tab: Follow the step-by-step process until asked to find the address doc…
Learn how to create and modify your own paragraph styles in Microsoft Word. This can be helpful when wanting to make consistently referenced styles throughout a document or template.

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question