Problem with utf-8 on Linux
I am looking for help on how to transfer cpp file with international characters from MSVC++ to Ubuntu.. such as:
const string sTest = "Å*ČĆÅ*Đ".
To save that on MS Visual studio as UTF-8 or codepage 1250... encoding?
What command on linux will recheck file:
I have tried with:
file -bi mzfile:
text/x-c; charset=utf-8
It seems ok, but it still would not recognise the international characters.. Why?
Why mime format?
Re: Problem with utf-8 on Linux
Quote:
Originally Posted by
Pancevo1956
...
const string sTest = "ŠČĆŠĐ".
Did you try to use wstring rather than string?
Code:
const wstring sTest = L"ŠČĆŠĐ";
Re: Problem with utf-8 on Linux
Quote:
Originally Posted by
VictorN
Did you try to use wstring rather than string?
Code:
const wstring sTest = L"Å*ČĆÅ*Đ";
Well, the problem is that I have to use string. It works fine with MSBC++ not problem at all. However, that code goes to tfs sorce control, and than back, and then to Linux by fillezilla. That approach with wstring works. I am trying to do the same with string. It seems to me that was working but because I guess Fillezilla update stop working.