Important changes to forums and questions
All forums and questions are now archived. To start a new conversation or read the latest updates go to forums.mbed.com.
10 years, 9 months ago.
Foreign language support in printf
I need to add foreign language support for a project and I have two questions on how to achieve this:
Firstly, in Europe they use a comma as a decimal place (e.g. 23,3). Is there any way of overriding the character used by printf when formatting floats?
Secondly, I need to handle characters from extended ASCII to add accents. When I tried this by copying and pasting a piece of text with an accent, the character was replaced by two chars when the compiler ran, so the wrong thing was displayed. Other than writing out the whole strings as a hex array, is there any way to tell the compiler how to convert the character to normal extended ASCII?
Thanks in advance for your suggestions.
Tim