97_utf8_string_literal.c 265 B

12345678910111213
  1. // this file contains BMP chars encoded in UTF-8
  2. #include <stdio.h>
  3. #include <wchar.h>
  4. int main()
  5. {
  6. wchar_t s[] = L"hello$$你好¢¢世界€€world";
  7. wchar_t *p;
  8. for (p = s; *p; p++) printf("%04X ", (unsigned) *p);
  9. printf("\n");
  10. return 0;
  11. }