character L’à’ was compiled into error code

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Sean 4 years, 3 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31395

    kenny0793
    Member

    #include <wchar.h>
    #include <stdio.h>

    int main()
    {
            wchar_t tmp;

            tmp = L'à';
    }

     

    character L'à' was compiled into 00 A0 which should be 00 E0 by the following command:

    mips-linux-uclibc-gcc -c tmp.c

    but in ubuntu, character L'à' can be compiled into E0 00(little endia) rightly.

    anybody can tell me the reason? thanksConfused

    #37791

    Sean
    Moderator

    Looks like you are using extended ascii instead of UTF8 encoding.

Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.