Let’s say you need to write an XML file with this content: < ?xml version=”1.0″ encoding=”UTF-8″? > < root description=”this is a naïve example” > < /root > How do we write that in C++? At a first glance, you could be tempted to write it like this: #include < fstream > int main() {…
Writing UTF-8 files in C++
Posted on