ultimatepp/uppdev/Sharps/Sharps.cpp
cxl 351994a6cc Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

23 lines
463 B
C++

#include <Core/Core.h>
using namespace Upp;
namespace Upp {
extern word CHRTAB_CP850[];
};
CONSOLE_APP_MAIN
{
String ss = "Spag. Süß";
String s = "ß";
for(int i = 0; i < 128; i++) {
DUMP(i + 128);
LOG(CHRTAB_CP850[i]);
}
DUMP(FormatIntHex(s.ToWString()[0]));
DUMP(ToCharset(CHARSET_CP850, s, CHARSET_UTF8));
return;
DUMP(ToCharset(CHARSET_WIN1250, s, CHARSET_UTF8));
DUMP(ToCharset(CHARSET_WIN1252, s, CHARSET_UTF8));
}