473,387 Members | 1,790 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Question on unicode and MBCS

I am working on a large project and have several modules written
compiled using MBCS. I am considering purchasing a third party library
which I understand, is compiled to support unicode strings.

Is there anyway I can work with both unicode and multi-byte C strings
(MBCS) in the same project ?
Mar 4 '07 #1
4 2486
Bit Byte wrote:
I am working on a large project and have several modules written
compiled using MBCS. I am considering purchasing a third party library
which I understand, is compiled to support unicode strings.

Is there anyway I can work with both unicode and multi-byte C strings
(MBCS) in the same project ?
Yes you can. What is it that you think will stop you?

john
Mar 4 '07 #2


John Harrison wrote:
Bit Byte wrote:
>I am working on a large project and have several modules written
compiled using MBCS. I am considering purchasing a third party library
which I understand, is compiled to support unicode strings.

Is there anyway I can work with both unicode and multi-byte C strings
(MBCS) in the same project ?


Yes you can. What is it that you think will stop you?

john
Just wasn't sure - since the two string types are not interchangeable
(i.e. without using some kind of conversion function from/to Unicode).

I was considering convert strings into the correct (i.e. expected)
format, before passing it to a method - but I just wanted to make sure
that I was not overlooking anything - or that there were no "gotchas I
was unaware of
Mar 4 '07 #3
Bit Byte wrote:
>

John Harrison wrote:
>Bit Byte wrote:
>>I am working on a large project and have several modules written
compiled using MBCS. I am considering purchasing a third party
library which I understand, is compiled to support unicode strings.

Is there anyway I can work with both unicode and multi-byte C strings
(MBCS) in the same project ?

Yes you can. What is it that you think will stop you?

john


Just wasn't sure - since the two string types are not interchangeable
(i.e. without using some kind of conversion function from/to Unicode).

I was considering convert strings into the correct (i.e. expected)
format, before passing it to a method - but I just wanted to make sure
that I was not overlooking anything - or that there were no "gotchas I
was unaware of
Yes you'd have to do the conversion yourself. Since you're programming
in Windows (I think) it has a couple of built in functions to do those
conversions.

However you should ask about them on a Windows programming group, since
we only deal with C++ language issues here.

john

Mar 4 '07 #4
On Mar 5, 7:57 am, Bit Byte <r...@your.box.comwrote:
I am working on a large project and have several modules written
compiled using MBCS. I am considering purchasing a third party
library which I understand, is compiled to support unicode strings.

Is there anyway I can work with both unicode and multi-byte C
strings (MBCS) in the same project ?
MBCS stands for multi-byte character set. In fact this is a poor
name, as it really means multi-byte encoding. The Unicode character
set can be encoded in a "MBCS" format , the most common such way is
known as UTF-8. There are other ways to encode Unicode characters,
such as UTF-16, UCS-2, etc.

If your application already supports UTF-8 then you should not have
any trouble. You should find out exactly which encoding formats this
third-party library supports. If it supports UTF-16 and not UTF-8,
for example, you may need to add a conversion function into your
application.

Mar 5 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

16
by: ^_^ | last post by:
conversion from: a="a"; to a=0x????; If there are many unicode strings to convert, how can I do batch-conversion?
1
by: ba.hons | last post by:
Hello, first post on here so hope i dont break any rules. My problem: I have a static piece of text in arabic which i need to print out to a printer, or the screen for that matter as am not...
13
by: mario | last post by:
Hello! i stumbled on this situation, that is if I decode some string, below just the empty string, using the mcbs encoding, it succeeds, but if I try to encode it back with the same encoding it...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.