On Fri, 18 Oct 2013, Ignacio Diaz-Emparanza wrote:
On 18/10/13 15:12, Allin Cottrell wrote:
>
> Perhaps we should offer an optional second argument to readfile(),
> allowing the user to specify the source codeset.
I think it is a good idea.
OK, it's now implemented. Suppose I want to use readfile() on
a text file encoded in MS codepage 1251 (Russian), and that is
not my locale codeset. I can then do
string s = readfile("russky.txt", "cp1251")
(Case doesn't matter in the codeset name).
Allin