how can i save the inside of [text] as plain ANSI not UTF-8 encoded?

Mar 17, 2011 at 1:35am

how can i save the inside of [text] as plain ANSI not UTF-8 encoded?

the question says it all. i noticed it’s UTF-8 because it adds
initial hex bytes EF BB BF to the saved file. i save text to a batch file
and if its not ANSI the dos command chcp 1252 doesn’t work.
and as a result i can not work reliable with windows path and filenames.

could i do something with the filetype definition or with [filein] after saving?

regards,
O.

#55563
Mar 17, 2011 at 7:02pm

weird. today [text] is not adding the utf-8 tag to files. but it still saves in that format. i had now success using chcp 65001 in the dos command prompt. no more errors interpreting the saved text from [text].

ps: forget what i wrote about filein. i thought it can also write to files.

#199853

You must be logged in to reply to this topic.