Questions tagged [mbcs]

MBCS is an abbreviation for "Multi-Byte Character Set" i.e. the representation of text using more than one byte per character.

MBCS is an abbreviation for "Multi-Byte Character Set" i.e. the representation of text using more than one byte per character. This is in contrast to "single-byte" encodings (such as ASCII or Latin-1) where each byte represents a single character.

For more information, please refer to this question: What is a multibyte character set?.

57 questions
0
votes
2 answers

MBCS to UTF-8: How to encode in Python

I am trying to create a duplicate file finder for Windows. My program works well in Linux. But it writes NUL characters to the log file in Windows. This is due to the MBCS default file system encoding of Windows, while the file system encoding in…
0
votes
0 answers

Visual C++/MFC/MBCS: getting Japanese/Korean characters to work in dialogs and LOGFONT

I have software originally developed 20 years ago in Visual C++ using MFC with MBCS, and strings held in char[]. I am currently using VS2015. To get it to work in Japanese I have: 1) change system locale and input method to Japan 2) In dialog…
drb01
  • 189
  • 1
  • 2
  • 17
0
votes
0 answers

Why does mariadb configure with MBCS instead of Unicode on Windows?

I am configuring mariadb 10.0.15 on Windows using CMake with the provided defaults. Why is the libmysql project produced configured to use the Multi-Byte Character Set instead of Unicode?
Zhro
  • 2,546
  • 2
  • 29
  • 39
0
votes
0 answers

Visual Studio 2013 MFC MBCS DLL Add-On Install Location

I am currently migrating several projects from Visual Studio 2010 to Visual Studio 2013. These projects use MBCS for the character set and build fine on my local machine as I have installed the MFC MBCS DLL Add-On. The projects fail to build in…
Allan B.
  • 33
  • 8
0
votes
0 answers

SHGetFolderPath returns incorrect file path for non-English Windows

My application uses SHGetFolderPath(NULL, CSIDL_APPDATA, NULL, 0, szPath) to get the file path for application data. A user reported (via a Survey Monkey survey) a bug as reported below -- "Win XP uses partly a Czech name "C:\Documents and…
Bob H
  • 135
  • 8
0
votes
2 answers

MFC Multibyte Add-on for Visual Studio 2015 Express for Desktop

I'm using VS 2015 Express for Desktop which doesn't have MFC Multibyte support by default. Not long ago there was a separate MFC MBCS DLL Add-on. But now link to Multibyte MFC Library for Visual Studio 2015 is removed. That was done because all…
bairog
  • 3,143
  • 6
  • 36
  • 54
0
votes
1 answer

Side-effect of deprecation of MBCS support for MFC in VS 2013

I just tried to compile an old MFC app under VS2013. It complained that non-Unicode MFC applications were deprecated, and refused to compile. Which is somewhat contrary to this announcement that talks about deprecating support for MBCS. Until now…
omatai
  • 3,448
  • 5
  • 47
  • 74
0
votes
2 answers

using either ofstream, or fstream open does not error and does not open the file

Using Visual Studio 2012 & with Project properties: Configuration Properties: General: Project Defaults:Character Set: Not Set Configuration Properties: C++: Language:Treat WChar_t as Built In Type: No I use an ofstream with following snippet of…
Michael Murdock
  • 129
  • 1
  • 9
0
votes
1 answer

Read registry value 32 bit?

I have the following code that compiles for MBCS. CString GetRegistry(LPCTSTR pszValueName) { // Try open registry key HKEY hKey = NULL; LPCTSTR pszSubkey = _T("SOFTWARE\\Wow6432Node\\PAX"); if ( RegOpenKey(HKEY_LOCAL_MACHINE,…
user3513035
0
votes
1 answer

Logic behind converting a character to UTF-8

I have the following piece of code which the comment in code says it converts any character greater than 7F to UTF-8. I have the following questions on this code: if((const unsigned char)c > 0x7F) { Buffer[0] = 0xC0 | ((unsigned char)c >> 6); …
Asha
  • 11,002
  • 6
  • 44
  • 66
0
votes
2 answers

Convering one symbol to MBCS from Unicode, where it present only in Unicode not in Code Page

My application was build based on MBCS but I have one currency symbol present in unicode but not in the relevant code page. I need to display the same currency symbol in my application, so is there any way i can implement it. I'm trying to do this…
0
votes
1 answer

C++ Using std::string functions for MBCS and std::wstring functions for UTF-16

Has anyone dealt with using std::string functions for MBCS? For example in C I could do this: p = _mbsrchr(path, '\\'); but in C++ I'm doing this: found = path.find_last_of('\\'); If the trail byte is a slash then would find_last_of stop at the…
loop
  • 3,460
  • 5
  • 34
  • 57
1 2 3
4