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++ Libraries and TheIDE: i18n, Unicode and Internationalization » CHARSET_UTF8 not working?
CHARSET_UTF8 not working? [message #48508] Tue, 11 July 2017 13:22 Go to previous message
rafiwui is currently offline  rafiwui
Messages: 105
Registered: June 2017
Location: Stuttgart, Germany
Experienced Member
Trying to make an internationalized application I came across an issue when I tried sth in czech language:
#include <CtrlLib/CtrlLib.h>
using namespace Upp;

#define TFILE <main/test.t>
#include <Core/t.h>

GUI_APP_MAIN
{
    SetLanguage(LNG_CZECH);
    SetDefaultCharset(CHARSET_UTF8);
    TopWindow app;
    app.SetRect(0, 0, 200, 20);
    app.Title(t_("Application"));
    app.Run();
}


test.t:
T_("Application")
csCZ("přihláška")


Running this results in the following output:
index.php?t=getfile&id=5339&private=0

When I comment out
SetDefaultCharset(CHARSET_UTF8);

it works perfectly:
index.php?t=getfile&id=5340&private=0

But it only works when I have my language set to czech and that is not what I want to achieve.

Am I missing sth here? And how can I get UTF8/Unicode to work properly?
  • Attachment: Upp1.PNG
    (Size: 0.72KB, Downloaded 538 times)
  • Attachment: Upp2.PNG
    (Size: 1.05KB, Downloaded 472 times)


Greetings
Daniel
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Theide (feature): closing openend files when changing package
Next Topic: Custom Build Steps to generate .cpp files and then compile
Goto Forum:
  


Current Time: Sat Apr 20 07:09:38 CEST 2024

Total time taken to generate the page: 0.03681 seconds