• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

TFS 1.6 Compiling Error

Lucas38

New Member
Joined
Aug 7, 2024
Messages
12
Reaction score
2
Anyone know how to fix?

TFS 1.6 Compiling

Error C2338 static_assert failed: 'Unicode support requires compiling with /utf-8' theforgottenserver C:\vcpkg\installed\x64-windows\include\fmt\base.h 458
 
Solution
To fix the error "error C2338: static_assert failed: 'Unicode support requires compiling with /utf-8'", you need to compile your project with the /utf-8 flag. This flag enables Unicode support in your project, allowing you to work with Unicode characters and strings. You can add the /utf-8 flag to your project settings by following these steps:
  1. Right-click on your project in Visual Studio.
  2. Select "Properties" from the context menu.
  3. In the project properties window, navigate to "Configuration Properties" > "C/C++" > "Command Line".
  4. In the "Additional Options" field, add "/utf-8" (without quotes).
  5. Click "Apply" and then "OK" to save the changes.
After adding the /utf-8 flag to your project settings, rebuild your...
To fix the error "error C2338: static_assert failed: 'Unicode support requires compiling with /utf-8'", you need to compile your project with the /utf-8 flag. This flag enables Unicode support in your project, allowing you to work with Unicode characters and strings. You can add the /utf-8 flag to your project settings by following these steps:
  1. Right-click on your project in Visual Studio.
  2. Select "Properties" from the context menu.
  3. In the project properties window, navigate to "Configuration Properties" > "C/C++" > "Command Line".
  4. In the "Additional Options" field, add "/utf-8" (without quotes).
  5. Click "Apply" and then "OK" to save the changes.
After adding the /utf-8 flag to your project settings, rebuild your project to apply the changes. This should resolve the static_assert error related to Unicode support.
Thanks to Nimbus for the help
 
Solution
Back
Top