Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » Developing U++ » U++ Developers corner » A temporary solution to garbled code in U++applications built through MSVC
A temporary solution to garbled code in U++applications built through MSVC [message #60279] Sun, 05 November 2023 15:18
lzjaiwl is currently offline  lzjaiwl
Messages: 2
Registered: September 2021
Junior Member
Currently, U++uses MSVC to build applications, which can easily lead to garbled Chinese due to encoding format issues.
The temporary solution is as follows:
Step 1:
Open the 'Main package configuration' option to increase 'BUILD_ CHARSET' flag.
index.php?t=getfile&id=6868&private=0
Step 2:
Find the file that defines' # pragma setlocation ('C ')' and modify it to:
#ifndef flagBUILD_CHARSET
	#pragma setlocale("C")
#endif

Step 3:
Open the 'Package organizer' option to create a new 'Compiler options',and add compilation instructions '/source-charset:utf-8','/execution-charset:utf-8'.


Using MSVC to build applications will prevent the occurrence of Chinese garbled code. Of course, there are other bugs that have not been further tested yet.

  • Attachment: 1.jpg
    (Size: 58.82KB, Downloaded 127 times)
Previous Topic: Value with type float
Next Topic: How umk is built under windows ?
Goto Forum:
  


Current Time: Wed Jun 19 05:43:35 CEST 2024

Total time taken to generate the page: 0.02387 seconds