CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 5 of 5

Thread: Unicode

  1. #1
    Join Date
    Sep 2008
    Posts
    16

    Unicode

    I try to compare 2 Chinese phrases and the function always returns false. I am confused.

  2. #2
    Join Date
    Sep 2004
    Location
    Holland (land of the dope)
    Posts
    4,123

    Re: Unicode

    O man, it sucks when that happens... I know how you feel.

  3. #3
    Join Date
    Nov 2003
    Posts
    1,902

    Re: Unicode

    The first article in my signature will definitely help you with this.

    gg

  4. #4
    Join Date
    Apr 2004
    Location
    England, Europe
    Posts
    2,492

    Re: Unicode

    If you are comparing two phrases, isn't false always the correct result?
    My hobby projects:
    www.rclsoftware.org.uk

  5. #5
    Lindley is offline Elite Member Power Poster
    Join Date
    Oct 2007
    Location
    Seattle, WA
    Posts
    10,895

    Re: Unicode

    Make sure the phrases really are identical, I suppose.

    And you may need to do normalization (eg, make sure you aren't using a variant of the same character with a different unicode value). ICU contains a method to do this.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured