1
I’m trying to modify a file .RTF
, where the parameters that will be modified are settados as numbers. However, their characters are in ANSI believe me, because the file has its header the following directives in RTF
{\rtf1\ansi\ansicpg1252
As I want to write to the file and the words contain accents, how can I encode my string so that it returns something read by RTF
???.
Below contains an example of the encoding used in the file
Usu\'e1rio
Pe\'e7a
(N\'famero)
Could you tell me how you did the test ? I tried using this function and unfortunately it didn’t work. I tried using it in files
.txt
and.rtf
.– Victor Henrique