sinbao has asked for the wisdom of the Perl Monks concerning the following question:
I failed to do that by code
__BEGIN__
open MyFile, ">:encoding(utf-8 )", "a.txt";
print MyFile "aaaa";
close MyFile
__END__
Question is, I want to write a visual studio solution file (.sln) which can't be recognized if it is not encoded in UTF-8 although the characters in it are all ASCII
__BEGIN__
open MyFile, ">:encoding(utf-8 )", "a.txt";
print MyFile "aaaa";
close MyFile
__END__
Question is, I want to write a visual studio solution file (.sln) which can't be recognized if it is not encoded in UTF-8 although the characters in it are all ASCII
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: How can I create an UTF8 encoded txt file contains strings like "aaaa"?
by zby (Vicar) on Sep 04, 2007 at 10:15 UTC | |
Re: How can I create an UTF8 encoded txt file contains strings like "aaaa"?
by graff (Chancellor) on Sep 05, 2007 at 03:57 UTC | |
Re: How can I create an UTF8 encoded txt file contains strings like "aaaa"?
by rdfield (Priest) on Sep 04, 2007 at 12:41 UTC | |
Re: How can I create an UTF8 encoded txt file contains strings like "aaaa"?
by sago (Scribe) on Sep 04, 2007 at 12:32 UTC |
Back to
Seekers of Perl Wisdom