Visual Studio Team System

Visual Studio Team System

Posts 1-1 of 1
  • Andreas H. Drescher
    Andreas H. Drescher
    The company name is only visible to registered members.
    UTF-8-Problem bei Visual Studio
    Liebe Mitglieder des Forums,

    Bruce Wilcox,
    der Programmierer von Gesprächsrobotern,
    der 2010 und 2011 den Loebner-prize gewonnen hat,
    hat ein Problem mit Visual Studio C++ und UTF-8.

    Dies sind die beidenb Postings von Bruce auf
    http://www.chatbots.org/ai_zone/viewthread/683/#8173

    I.
    I have modified chatscript to read UTF-8 files and ignore the BOM at the start.
    I have modified the script compiler to generate files marked with the BOM at the start
    and fixed a bunch of code that wasn’t ready for multibyte characters.

    At this point, I’d be done, except for ONE LITTLE PROBLEM. Taking a string of characters, some of whom may be utf-8
    and getting the visual studio C++ console window to display them correctly. I tried setting a codepage. I tried converting the string to widechar stuff. But I haven’t been able to get the console output to display them. The server would be fine,
    because it would send back utf8 characters and the browser or receiver would be responsible for displaying them.

    Any ideas?

    II.
    I went to the windows command prompt window. Told it to type out my simple source file with umlaut character as part of topic. Printed wrong, of course. Then tried chcp 1250 and chcp 65001 before a type command, didn’t help. Still prints out wrong.

    Es wäre mir das schönste Geburtstagsgeschenk (morgen, 22.12: ),
    wenn Bruce da weiter käme.

    Herzliche Grüße
    von

    Andreas H. Drescher