I have an MFC application where the Character Set is "Not Set". What are the risks associated with running this application on a OS that has a Multi Byte Character Set code page?
Risks of running on single byte character app on a MBCS OS
135 Views Asked by JonDrnek At
2
There are 2 best solutions below
0
buttercup
On
The risks are:
1) If you use non-English texts, and the user enters, say, Russian, some Russian characters that are not mapped to MBCS or require a Charset layer, will be retrieved as '?'
2) You need to inform the customer that the App. accepts English-only and no guarantee the App, when entering non-English characters, would accept or retrieve non-English texts correctly.
3) Any texts with foreign language characters may lead to unwanted or undesired conversion of accents and diacritics to something else.
Related Questions in C++
- How to immediately apply DISPLAYCONFIG_SCALING display scaling mode with SetDisplayConfig and DISPLAYCONFIG_PATH_TARGET_INFO
- Why can't I use templates members in its specialization?
- How to fix "Access violation executing location" when using GLFW and GLAD
- Dynamic array of structures in C++/ cannot fill a dynamic array of doubles in structure from dynamic array of structures
- How do I apply the interface concept with the base-class in design?
- File refuses to compile std::erase() even if using -std=g++23
- How can I do a successful map when the number of elements to be mapped is not consistent in Thrust C++
- Can std::bit_cast be applied to an empty object?
- Unexpected inter-thread happens-before relationships from relaxed memory ordering
- How i can move element of dynamic vector in argument of function push_back for dynamic vector
- Brick Breaker Ball Bounce
- Thread-safe lock-free min where both operands can change c++
- Watchdog Timer Reset on ESP32 using Webservers
- How to solve compiler error: no matching function for call to 'dmhFS::dmhFS()' in my case?
- Conda CMAKE CXX Compiler error while compiling Pytorch
Related Questions in MFC
- Unable to add request headers via CHttpFile - C++/MFC
- Is there a worked example of using CStrBufT with a CString?
- UI Interface Crashes and Hanging Issues in MFC Application
- getting a Win32 console app to work with MFC
- How to create borderless CFrameWnd for SDI application
- How to get real lines count of CEdit control
- MFC Dynamic Layout - Show/Hide Control and adjust other controls out of the way?
- Combobox items not showing when Windows DPI changed
- Printing strings using MFC Edit Control is very slow
- How can an MFC VC++ application execute multiple functions within a single function without hanging or displaying a 'Not Responding' message?
- How to enable scrollbar in a specific group member added
- Resetting dynamic layout controls
- How to set a new height (or width) to a CRect?
- Drawing my own embedded button with CMFCPropertyGridProperty and detecting the button state
- Relative path issue when running programs with Task Scheduler
Related Questions in INTERNATIONALIZATION
- Do GTK file chooser dialogs come with localized strings for buttons and titles?
- Difficulty with hosting Multilingual Wagtail site on alwaysdata
- Does the language used in schema need to match the HTML lang attribute?
- Next.js 14: using next-intl to change the language, redirects me to home page whenever I change the language
- next-i18next Problem with multiple links redirecting to the same location
- Python transliterator that holds the same rules as PHP one
- Using React Intl without a key
- Storybook build with i18n not worked
- ForceRTL on iOS isn't working in React Native App
- i18n Attaching variable in the middle of a string
- RN i18n issue on some iOS devices
- Next.js: SyntaxError: Named export 'i18n' not found
- nextjs 13, 14 App Directory language without i18n - internalization
- Django translation doesnt work in python code
- Nuxt.js i18n Not Serving Pages in Default Locale Without Redirecting
Related Questions in MBCS
- Why is 'UNICODE' being defined?
- How to MIGRATE ANSI/MBCS Resources for Visual Studio 2019 C++ MFC project
- How to work with substrings / delete character when content is mixed single and double byte?
- MFC dialogs caption fails with Unicode
- How to create filename with characters that are not part of UTF-8 on Windows?
- Read *.txt file with German text, show it in my GUI -- characters with umlauts not correct
- Cannot create user at runtime with Query with parameters
- Everytime I build a unreal engine project, vs keeps warning like this: unable to get MBCS string
- how to read csv files with mbcs codec in Python on Linux?
- Is it guaranteed that trailing bytes in mbcs encodings are in specific range?
- MFC CEdit converts non-ascii characters to ascii
- Visual C++ - UTF-8 - CA2W followed by CW2T with MBCS - Possibly a bad idea?
- MBCS encoding unknown
- VSO/VSTS and MBCS
- Converting from Windows MBCS to UTF-8
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
The "Character Set: Not Set" option defines neither
_MBCSnor_UNICODE. That means that you're using the *A series of functions. Those will return MBCS strings, even when_MBCSis not defined.If
_MBCSdoesn't affect the strings returned from the *A functions, then what does it do? It maps some<tchar.h>tcs*functions to theirmbs*versions, instead of thestr*orwcs*variants. E.g. without_MBCS,_tcsrevmaps tostrrev, not_mbsrev.Therefore, you may not be able to reverse the multi-byte strings you receive from the OS, or edit them otherwise.