You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/getting-started/cpp.mdx
+22-22
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,34 @@ Get started with our cross-platform C++ header library.
4
4
5
5
1. Copy [Velopack.hpp](https://github.com/velopack/velopack.fusion/blob/master/for-cpp/Velopack.hpp) and [Velopack.cpp](https://github.com/velopack/velopack.fusion/blob/master/for-cpp/Velopack.cpp) into your project.
6
6
7
-
0. If you are on Linux or MacOS, you'll need [ICU4C](https://icu.unicode.org/) installed. Like many other C libraries,
8
-
installing the development package with your package manager (`apt`, `brew` etc) should be sufficient to make it available to compilers.
9
-
The specific command you'll need is OS/Distro specific.
7
+
0. Configure Unicode Support:
8
+
#### Windows
9
+
On Windows, to enable unicode support for this library you ***must***
10
+
[configure the UTF-8 code page](https://learn.microsoft.com/en-us/windows/apps/design/globalizing/use-utf8-code-page) via your application
11
+
manifest. Failure to do so will potentially result in your application ***failing to update*** if there are any unicode characters in your user's
The Velopack C++ Library expects UTF-8 `std::string` and `char*` strings, which is standard practice on Unix-like operating systems, so no extra steps are needed there.
57
-
On Windows, Velopack will use the `A` (ansi) windows functions which accept `char*` rather than the `W` (UTF-16) unicode functions.
58
-
By adding the UTF-8 code page to your application manifest, the `A` ansi functions will switch to accepting UTF-8.
0 commit comments