Hi, Kapil.

2012/11/7 Kapil Agarwal <dragonslayerlord2...@gmail.com>:
> On Thu, Oct 18, 2012 at 11:51 AM, Martin Decky <mar...@decky.cz> wrote:
>>
>> You have to use the functions from uspace/lib/c/generic/str.c to properly
>> decode and encode UTF-8 strings:
>>
>> str_decode()
>> str_decode_reverse()
>> chr_encode()
>
> What should be the expected output for the functions str_decode and
> chr_encode for some input ?
> as far as i can see after executing some codes, the output is the same as
> the input in both of them
For characters available in plain 7bit ASCII (i.e. "American
alphabet"), the output would be the same because these characters are
encoded the same way in UTF-8.
Have you tried putting there some multibyte character - e.g. some national one?

> Also, for testing purposes, how can I input non-ASCII characters ?
Currently, there are 3 keyboard layouts available. You can switch
between them with Ctrl-F1 (US), Ctrl-F2 (Dvorak) and Ctrl-F3 (Czech).
If you want to add your own one, /uspace/srv/hid/input/layout is the
directory you are looking for.

- Vojta

>
>
> --
> Kapil
>
> _______________________________________________
> HelenOS-devel mailing list
> HelenOS-devel@lists.modry.cz
> http://lists.modry.cz/cgi-bin/listinfo/helenos-devel
>

_______________________________________________
HelenOS-devel mailing list
HelenOS-devel@lists.modry.cz
http://lists.modry.cz/cgi-bin/listinfo/helenos-devel

Reply via email to