Project

General

Profile

Actions

Support Request #135

closed

Drawer does not support UTF-8 characters

Added by hidden over 7 years ago. Updated about 7 years ago.

Status:
Closed
Priority:
Normal
Customer:
AUDI
Department:
AEV
Requester's Priority:
Normal
Support Level:
3rd Level
Resolution:
Product Issue Opened
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

Unbenannt.JPG (16.2 KB) Unbenannt.JPG hidden, 2017-01-30 11:36
AffectedProducts.JPG (33.3 KB) AffectedProducts.JPG hidden, 2017-01-31 06:15
Actions

Also available in: Atom PDF