Home » U++ TheIDE » U++ TheIDE: Other Features Wishlist and/or Bugs » [solved] TheIDE "Run Options..." bug
Re: TheIDE "Run Options..." bug [message #43673 is a reply to message #43652] |
Fri, 19 September 2014 11:02 |
cbpporter
Messages: 1401 Registered: September 2007
|
Ultimate Contributor |
|
|
[quote title=mirek wrote on Thu, 18 September 2014 08:47]
Can you show me the code please? I know it sounds trivial, but there are more interpretations to this...
[quote title=Quote:]
That's not that easy since technically I am not written C++ code .
Anyway, here is a bare bones WinAPI sequence that prints thing as expected:
SetConsoleOutputCP(65001);
uint8 s[] = { 0xC3, 0x80 };
uint8* h = GetStdHandle(4294967285u);
uint32 dummy = 0u;
WriteFile(h, s, 2, &(dummy), 0);
The console is set to UTF8. The À (0xC0) codepoint is encoded with two Utf8 code units 0xC3, 0x80. Now, if the console is set to use a non-bitmap font, it will work very well with a wide range of characters. If the character is not supported, one or more empty little rectangles are rendered. The good news is that you can copy&paste them and the correct information is preserved.
So technically if the String is Utf8, it should work. It works in my code and even with Utf8 U++ Strings prior to your changes. But TheIDE/LocalProcess messes up these values.
I did not manage to encode À as 0x00C0 (or even 0xC000) in Utf16 and send it to the console. Google seems to suggest that the console is inherently 8bit.
|
|
|
|
|
[solved] TheIDE "Run Options..." bug
By: cbpporter on Mon, 15 September 2014 16:01
|
|
|
Re: TheIDE "Run Options..." bug
By: mirek on Mon, 15 September 2014 19:08
|
|
|
Re: TheIDE "Run Options..." bug
By: cbpporter on Mon, 15 September 2014 19:16
|
|
|
Re: TheIDE "Run Options..." bug
By: mirek on Mon, 15 September 2014 19:48
|
|
|
Re: TheIDE "Run Options..." bug
By: cbpporter on Wed, 17 September 2014 15:12
|
|
|
Re: TheIDE "Run Options..." bug
By: mirek on Thu, 18 September 2014 07:47
|
|
|
Re: TheIDE "Run Options..." bug
By: cbpporter on Thu, 18 September 2014 08:18
|
|
|
Re: TheIDE "Run Options..." bug
By: cbpporter on Fri, 19 September 2014 11:02
|
|
|
Re: TheIDE "Run Options..." bug
By: mirek on Fri, 19 September 2014 13:47
|
|
|
Re: TheIDE "Run Options..." bug
By: cbpporter on Fri, 19 September 2014 14:33
|
|
|
Re: TheIDE "Run Options..." bug
By: mirek on Sat, 20 September 2014 09:33
|
|
|
Re: TheIDE "Run Options..." bug
By: cbpporter on Sat, 20 September 2014 09:50
|
|
|
Re: TheIDE "Run Options..." bug
By: mirek on Sat, 20 September 2014 18:05
|
|
|
Re: TheIDE "Run Options..." bug
By: mirek on Mon, 22 September 2014 14:44
|
Goto Forum:
Current Time: Mon Apr 29 19:07:58 CEST 2024
Total time taken to generate the page: 0.03026 seconds
|