LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

source code charset/encoding problems

Solved!
Go to solution

Hello. My name is KB from South Korea.

I have a problem about customer's source code from French.

I've faced the messages that "The file contains characters that are invalid th the current charset/encoding and were replaced with '?'. The first invalid character is located at line xx, column xx. The file has been set to read-only. Opening the file with a different charset/encoding might fix the problem. " when I open the source code.

I've used Labwindows CVI 19 and Windows 10 64bit. I aleady installed language pack for French.

But it couldn't solve the problem.

How can I do?

 

Thanks.

Regards

KB

0 Kudos
Message 1 of 5
(2,976 Views)
Solution
Accepted by topic author Kwanbum

Try changing the Character set for source code editor from Options->Font->Source Window Font and edit it to change the Character set to Western, I would say. 

Message 2 of 5
(2,941 Views)

What the other poster said, otherwise you can convert the text using a command line such as:

iconv -c -f UTF-8 -t "ASCII//TRANSLIT" file.c

0 Kudos
Message 3 of 5
(2,934 Views)

Dear Razvan

 

Thanks a lot.

It has solved. Thank you very much.  Your are correct.

 

Regard

KB

0 Kudos
Message 4 of 5
(2,913 Views)

Dear gddargaud

 

Hello.

This problem has solved. thanks. But I would like to know how to this syntax  "iconv -c -f UTF-8 -t "ASCII//TRANSLIT" file.c".

Could you tell me ?

 

Regards

KB

0 Kudos
Message 5 of 5
(2,910 Views)