Go Back   Scooter Forums > Beyond Compare 3 Discussion > Scripting
Register FAQ Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Display Modes
  #1  
Old 30-Jul-2012, 01:20 AM
kris kris is offline
New User
 
Join Date: Jul 2012
Posts: 1
Default script,session,encoding

first,i am chinese,my english is poor,so...i hope u can understand.
i have few jsp file,its encoding are gbk,content include "gbk",
just like:
<meta http-equiv="Content-Type" content="text/html; charset=GBK">

now i had to modify those file's encoding to utf-8,like
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">.

after that,i want to use bc to check those modified file.
because jsp file too many,i want use bat to do this,but i can't write the script.
i can set session's format to define left encoding and right encoding,and save this session.but it could not work in cmd line.
pls help me ,what can i do.
thank you.
Reply With Quote
  #2  
Old 30-Jul-2012, 09:12 AM
Aaron Aaron is online now
Team Scooter
 
Join Date: Oct 2007
Location: Madison, WI
Posts: 5,447
Default

Hello,

Thanks for writing in. Do you have a pair of sample files you can send in to support@scootersoftware.com? Please also email us a link back to this forum post for our reference.

For scripting, there are two scenarios. The Auto-detect should work and you would not need to override the encoding. If you send in two sample files, we can investigate why the auto-detect is failing.

Session Settings for encoding overrides cannot be passed to script. For scripting, this is controlled by the Tools menu -> File Formats. If you have two different formats, one for each encoding, and change the file mask so the first format matches only the left files, and the second format matches only the right files, this could be used to override the encoding.
__________________
Aaron P Scooter Software
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -6. The time now is 04:50 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.