Actions
Support Request #135
closedDrawer does not support UTF-8 characters
Status:
Closed
Priority:
Normal
Customer:
AUDI
Department:
AEV
Requester's Priority:
Normal
Support Level:
3rd Level
Resolution:
Product Issue Opened
Product Issue Numbers:
Affected Products:
Platform:
Windows 7 64bit
Topic:
DisplayTB::2DDisplay
FAQ Links:
Description
Supportanfrage:
Ist es möglich Umlaute in Drawern zu schrieben?
std::string displayText; displayText = "Keine \xc3\x9c berholmöglichkeit"; if (!displayText.empty()) pCanvas->OutputText(DISPLAYTEXT_XPOS, DISPLAYTEXT_YPOS, "%s", displayText.c_str());
funktioniert leider nicht. Ich nehme also die UTF-Codierung von Hand vor.
Ein kleines Testprogramm:
// Example program #include <iostream> #include <string> int main() { std::string displayText; displayText = "Keine \xc3\x9c berholmöglichkeit"; printf("%s \n", displayText.c_str()); }
funktioniert hingegen schon.
Lösung:
ADTF nutzt zur Darstellung der Zeichen am Display OpenGL + den ASCII-Zeichensatz, der keine Umlaute enthält.
Ich hab zu dieser Anforderung für die Display Toolbox für ADTF 3 ein Produktticket erstellt.
Im AEV-Redmine: http://km-aev.in.audi.vwg/redmine/issues/37952
Files
Actions