encoding

Questions on using RText should go here.

Moderator: robert

encoding

Postby mnru » Tue May 11, 2010 3:06 pm

Can I change default encoding for opening files ?
mnru
 

Re: encoding

Postby robert » Wed May 12, 2010 11:48 am

Hello,

There sure is. Just go to the Edit Menu, and select "Options", then in the "New Files" section of the "General" tab, you can change the default encoding for new files, as well as the line terminator and directory.
User avatar
robert
 
Posts: 789
Joined: Sat May 10, 2008 5:16 pm

Re: encoding

Postby mnru » Thu May 13, 2010 7:46 am

Thank you ,Robert. but that's not what I meant.
As your instruction, I can make file in UTF-8 and save it, but I can't open it by double-clicking.
I must always set encoding style in open dialog.(my environment is windows 7 Japanese edition)
I think Rtext is very attractive ,but I can't bear this problem.
mnru
 

Re: encoding

Postby robert » Thu May 13, 2010 12:08 pm

Check the option to "Include a BOM when writing UTF-8 files". This will cause the file to open as UTF-8 from then on. This is because, without a [url=http://en.wikipedia.org/wiki/Byte_order_markBOM[/url], RText considers all files to be the system default encoding. It could alternatively scan the entire file byte by byte, before opening, to semi-reliably auto-detect UTF-8 files without a BOM (should work okay most of the time), but a safer alternative is to put a BOM in your UTF-8 file.
User avatar
robert
 
Posts: 789
Joined: Sat May 10, 2008 5:16 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest