Forums > MaxMSP

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

March 17, 2011 | 1:35 am

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.


March 17, 2011 | 7:02 pm

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.


Viewing 2 posts - 1 through 2 (of 2 total)