Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Core » BUG: Serious problem with Core/CharSet
icon12.gif  Re: BUG: Serious problem with Core/CharSet [message #26900 is a reply to message #26896] Mon, 07 June 2010 12:27 Go to previous messageGo to previous message
kov_serg is currently offline  kov_serg
Messages: 42
Registered: August 2008
Location: Russia
Member
This will work.
#undef CHARSET_CP866
#define CHARSET_CP866 60

CONSOLE_APP_MAIN
{
	Cout() << "\n";
	String s = ToCharset(CHARSET_CP866, "Всем привет!", CHARSET_UTF8);
	for (int i=0; i<s.GetLength(); ++i)
		Cout() << Format("%02X ", s[i]&255);
}
// outputs: 82 E1 A5 AC 20 AF E0 A8 A2 A5 E2 21

Don't panic. I think this problem will be fixed in futute releases. Now you can fix defines in your CharSet.h
...
#define  CHARSET_CP865             59 // instead of 61
#define  CHARSET_CP866             60 // instead of 62
#define  CHARSET_CP869             61 // instead of 63
... and so on

[Updated on: Mon, 07 June 2010 12:34]

Report message to a moderator

 
Read Message icon4.gif
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message icon12.gif
Read Message
Read Message
Previous Topic: String: Add Method ReversFind:
Next Topic: double equals nothing
Goto Forum:
  


Current Time: Thu Aug 28 16:50:50 CEST 2025

Total time taken to generate the page: 0.07015 seconds