Input Japanese Unicode Characters in C

By IAmHip
Jul 12, 2016
Post New Reply
  1. I want to display Japanese characters with a C program.
    Is it impossible? Most webpage links redirect to C# or C++.

    I tried UTF-8 encoding and the ja_JP locale but it printed funky results, different than the ANSII encoding.
    If I knew the format for how to input the Unicode hex or the decimal, would that work or would there still be an issue with the display? Is there a format for that?

    Eventually I am trying to add it to a big project I am working on where specifics matter, but I can play with that then. I just want to know if it's possible and if so then the general way to do it.
  2. jobeard

    jobeard TS Ambassador Posts: 11,158   +986

    output for ja_JP should be quite different than ASCII - - that's the whole point of Unicode and UTF-8 is the wrong table.

    As Japanese is double-byte codes, you're not going to push Ascii -> Unicode and get ja_JP output.
    Suggest you read up on Natural Language Support

Similar Topics

Add your comment to this article

You need to be a member to leave a comment. Join thousands of tech enthusiasts and participate.
TechSpot Account You may also...