17 lines
313 B
C++
17 lines
313 B
C++
#include "pip.h"
|
|
#include "pivector2d.h"
|
|
#include "pistring.h"
|
|
|
|
|
|
int main(int argc, char *argv[]) {
|
|
PIString s = PIString::fromUTF8("hello, привет");
|
|
piCout << s;
|
|
PIByteArray ba = s.toUTF8();
|
|
piCout << ba.toHex();
|
|
PIString s2;
|
|
s2 = PIString::fromUTF8(ba);
|
|
piCout << s2;
|
|
return 0;
|
|
}
|
|
|