Author Topic: Encoding option support per file type  (Read 274 times)

Offline photon

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Encoding option support per file type
« on: September 02, 2010, 05:17:30 pm »
It would be nice to have such feature. I'm from Russia and has some "additional moves" for *.bat and *.cmd files (they are in cp866 encoding but system encoding is Win1251) - so I have to change encoding for each file on the first editing.

Can you introduce such option support for each file type (for example, it is system encoding by default)?

Thank you.
« Last Edit: September 02, 2010, 05:19:09 pm by photon »

Offline alex

  • Developer
  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1712
  • Karma: +29/-2
    • View Profile
    • HippoEDIT
Re: Encoding option support per file type
« Reply #1 on: September 03, 2010, 11:20:50 am »
Hi photon,

already done. Check this post.
You are interested in this:
Quote
2) Set, for syntax you are using, forced encoding:
Code:
<Encoding default="852" force="true"/>
in SPECIFICATION section of schema spec file.
for usage examples just search for "<Encoding" among syntax files.

Something like this should work as you want:
Code: [Select]
<Encoding default="0" force="true"/>0 means CP_ACP, system default encoding (in your case 1251).

Best regards,
Alex.

Offline photon

  • Newbie
  • *
  • Posts: 6
  • Karma: +0/-0
    • View Profile
Re: Encoding option support per file type
« Reply #2 on: September 03, 2010, 11:29:07 am »
Thank you!

 

Related Topics

  Subject / Started by Replies Last post
2 Replies
354 Views
Last post April 21, 2009, 06:33:23 pm
by Arthur
3 Replies
1954 Views
Last post June 09, 2009, 11:18:33 am
by alex
5 Replies
1200 Views
Last post June 08, 2009, 08:49:34 pm
by alex
7 Replies
1036 Views
Last post August 04, 2009, 01:24:53 pm
by alex
2 Replies
40 Views
Last post March 13, 2012, 05:32:56 am
by vineel567