-
July 28th, 2017, 05:15 AM
#1
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?
-
July 28th, 2017, 03:16 PM
#2
Re: Problem with utf-8 on Linux
Originally Posted by Pancevo1956
...
const string sTest = "ŠČĆŠĐ".
Did you try to use wstring rather than string?
Code:
const wstring sTest = L"ŠČĆŠĐ";
Victor Nijegorodov
-
August 1st, 2017, 07:56 AM
#3
Re: Problem with utf-8 on Linux
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.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|