How to convert 2 wchar_t to 1 wchar_t
In a nutshell – I have a wstring, but each consecutive pair of wchar_t are to be converted to a single whar_t, and then this is the character code to use for display purposes.
How best to do the conversion?
How best to do the conversion?
How did it end up like this? downloading foreign web-pages that use a different charset for their content, but the html file itself is ASCII. So the browser would know to take two consecutive chars and convert into a single wchar. I read the contents into a wstring so each char is converted to wchar_t. This much I do not want to change.
Thanks in advance.
More:
How to convert 2 wchar_t to 1 wchar_t
Related posts:
- convert CString to const wchar_t *. Hi all please tell me how can i convert...
- Convert a wstring to a number I am trying to convert a wstring to a...
- Convert std::wstring to String^ Hello, i use Cmarkup and i get a wstring...
- Define wchar_t in VC 6 Hello to all I would like to define the...
- Convert from integer to ascii… I am using an integer to receive values from...
Related posts brought to you by Yet Another Related Posts Plugin.
Sep
09
09