How to convert 2 wchar_t to 1 wchar_t

Written by


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 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:

  1. convert CString to const wchar_t *. Hi all please tell me how can i convert...
  2. Convert a wstring to a number I am trying to convert a wstring to a...
  3. Convert std::wstring to String^ Hello, i use Cmarkup and i get a wstring...
  4. Define wchar_t in VC 6 Hello to all I would like to define the...
  5. 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

Leave a Reply