Find and replace function use the wrong Unicode code

Anonymous
2015-11-26T13:41:47+00:00

Hi,

I have this weird problem.

I am on Office 2010 on Win7 ultimate (Japanese version but set to English) if that is of any use.

In a document, when I use ALT+X to display the Unicode code of a character, it displays the right code but the search/replace function of word matches with different codes.

I am trying to do a search for a character which is displayed as blank (it's not the space displayed as a dot), and since copy/paste into the find box wasn't working, I tried to find by using the unicode code, hence the ALT+X. It tells me 2028, which seems to be a line separator. This is very possible since these characters are from a UTF8 text file and indeed could be a line separator.

Anyway, when looking up for ^u2028, I get zero results. I tried with other character and for the small letter a, ALT+X says correctly that it is 0061, but again, if I search for ^u0061, I get zero match. Instead, the search function finds the small a when I type ^u0065, which is the unicode code for e.

So basically, the text is properly encoded and alt+x displays the code properly, however my search function is off. Any idea of what the problem is?

EDIT: Hi all. Thanks for the replies. It's definitely a problem related to the search function. I tried again today ^u0065 to see if it incorrectly finds again the small a (u0061) instead and didn't even find it! I realized that the find parameters were different. The default option is "Sounds like (Japanese) and it finds nothing when this is turned on. However, if I untick this option, then it is back at finding the character with the wrong code.

The suggested solutions (5 digit unicode code, and searching with the Html code) do not work.

Microsoft 365 and Office | Word | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2015-11-27T17:08:40+00:00

    Have you tried searching for “^u8232” (without the quote marks)? If you do, Word should find the blank “line separators” in your document.

    If you search for “^u97” (without the quote marks), Word should find any “Latin small letter a”.

    If you search for “^u101” (without the quote marks), Word should find any “Latin small letter e”.

    Etc.

    In short, use the HTML entity code numbers to search for characters in a Word document.

    Robert

    7 people found this answer helpful.
    0 comments No comments

9 additional answers

Sort by: Most helpful
  1. Anonymous
    2017-12-05T10:56:02+00:00

    hex unicode code doesn't work with Find ^u

    only decimal code works with Find ^u

    You have to find the decimal equivalent of that hex code

    hex 2028 = decimal 8232

    Find ^u8232 and it will work.

    It is just a whim of MICROSOFT, that on pressing Alt X they themselves give Hexcode but we can't use that code. There should be some keyboard shortcut to directly find char code in decimal.

    Thanks.

    2 people found this answer helpful.
    0 comments No comments