Quantcast
Channel: CodeGuru Forums - Visual C++ Programming
Viewing all articles
Browse latest Browse all 3027

utf8 compilation error

$
0
0
Hi !

I use Qt 5.1.1 with Visual Studio 2012.

I declare:

Code:

struct Alpha {
      const char* text_1; 
      const char* text_2; 
      };

And:

Code:

static Alpha aAlpha[] = {

      {  "cat", ""                                                      },
      {  "dog", u8"\U0001d18f\U0001d18f\U0001d18f\U0001d18f\U0001d18f\U0001d18f" },
      };

I have got many warning & errors :

E:\animal.cpp:45: warning: C4566: character represented by universal-character-name '\UD834DD8F' cannot be represented in the current code page (1252)
E:\animal.cpp:45: error: C2065: 'u8' : undeclared identifier

Could you help please ?

Viewing all articles
Browse latest Browse all 3027

Latest Images

Trending Articles



Latest Images