Jump to content
Sign in to follow this  
kctvt

Can't Encoding after run the programe

Recommended Posts

kctvt

I'm Vietnamese, and I'm writting a programe can copy everything in file to another file, and save.

I have 2 file:

+ Noidung.txt

Ta là con người, ta có thể đọc, có thể viết.

Ta là loài có số lượng đông nhất trên trái đất.

Ta là loài có trí óc thông minh nhất trái đất.

+ Test.txt

1

I want to copy everything in Noidung.txt and paste to Test.txt , and save.

And this my code :

#include <File.au3>

#include <Array.au3>

Dim $noidung

_FileReadToArray("noidung.txt",$noidung)

Dim $id

_FileReadToArray("Test.txt",$id)

_ArrayConcatenate($id,$noidung)

_FileWriteFromArray("Test.txt",$id,1)

This's results after run the programe, I open Test.txt :

1

5

Ta là con ngu?i, ta có th? d?c, có th? vi?t.

Ta là loài có s? lu?ng dông nh?t trên trái d?t.

Ta là loài có trí óc thông minh nh?t trái d?t.

I want to copy everything in Noidung.txt and paste to Test.txt , and save. But, I cant. I cant read Test.txt because the content'Test.txt is Error.

Encoding in Autoit is UTF-8

Encoding in Noidung.txt is UTF-8

Encoding in Test.txt in the first time is UTF-8

But Encoding in Test.txt in the last time is ASNI => I cant read.

So, what I have to do rightnow ?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×