Anonymous user
Unicode strings: Difference between revisions
m
rewording
No edit summary |
m (rewording) |
||
Line 1:
{{draft task}}
The task is to demonstrate how one is expected to handle Unicode strings. The provided solution should show:
* How Unicode strings are represented in source code
* How to perform input and output using Unicode strings
* Examples of string manipulation
* Encodings supported by the language (eg UTF-8, UTF-16, etc)
=={{header|C}}==
C is not the most unicode friendly language, to put it mildly. Generally using unicode in C requires dealing with locales, manage data types carefully, and checking various aspects of your compiler. Directly embedding unicode strings in your C source might be a bad idea, too; it's safer to use their hex values. Here's a short example of doing the simplest string handling: print it.<lang C>#include <stdio.h>
|