http://gcc.gnu.org/projects/cxx0x.html shows Unicode string literals (N2442) as being supported in gcc 4.4. But this little program fails to compile:
#include <iostream> int main() { std::cout << u8"foo" << std::endl; } C:\gcc>bin\g++ -std=gnu++0x u8-literal.cpp u8-literal.cpp: In function 'int main()': u8-literal.cpp:5: error: 'u8' was not declared in this scope u8-literal.cpp:5: error: expected ';' before string constant C:\gcc>bin\g++ -v Built by Equation Solution <http://www.Equation.com>. Using built-in specs. Target: i386-pc-mingw32 Configured with: ../gcc-4.4.1-mingw/configure --host=i386-pc-mingw32 --build=x86_64-unknown-linux-gn u --target=i386-pc-mingw32 --prefix=/home/gfortran/gcc-home/binary/mingw32/native/x86_32/gcc/4.4.1 - -with-gcc --with-gnu-ld --with-gnu-as --disable-shared --disable-nls --disable-tls --with-gmp=/home/ gfortran/gcc-home/binary/mingw32/native/x86_32/gmp --with-mpfr=/home/gfortran/gcc-home/binary/mingw3 2/native/x86_32/mpfr --enable-languages=c,fortran,c++ --with-sysroot=/home/gfortran/gcc-home/binary/ mingw32/cross/x86_32/gcc/4.4.1 --enable-libgomp --enable-threads=win32 --disable-win32-registry Thread model: win32 gcc version 4.4.1 (GCC) Is this a bug in gcc? A bug in the C++0x Support page? A bug in my test? Thanks for all the great work on C++0x! --Beman