WARNING: HTML/RTF message - sorry, my crappy company provided mail client is 
broken and can't send text/plain... D-;
 
Depending on the URI you pass into the (batch) command, you will read data from 
either a FileInputReader (file path) or from an InputStreamReader (URL). Either 
way, I think you are going to be ok.
 
For more info on unicode and java see:
 
http://www.javaworld.com/javaworld/jw-01-1998/jw-01-indepth_p.html
 
If you *really* need more control over the handling of input etc. you can 
always do something like this (not compiled/tested):
 
; specify which file
(bind ?mypath "c:\\unicodeFile.jess")
 
; build input/reader
(bind ?in (new java.io.FileInputStream (new java.io.FileReader ?mypath))) ; 
your choice here...
 
; check the encoding
(printout t "Using encoding : " (?in getEncoding))
 
; parse the input into (engine)
(bind ?jesp (new Jesp ?in (engine))
(?jesp parse false)
 
This will parse the ?mypath file into the current engine...
 
Good luck!
 
alan
__________________
Bleib immer locker

________________________________

From: [EMAIL PROTECTED] on behalf of Dasch
Sent: Wed 3/16/2005 5:06 PM
To: Jess Users Email Discussion Forum
Subject: JESS: Batch file question (unicode supported ?)



Hi,

I was wondering if it is possible to use batch files (files loaded with
the batch command) encoded in Unicode ?
If it is possible, could you tell me how to do it ? Is there a specific
argument to use ?

Thanks in advance,
Dasch

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------



<<winmail.dat>>

Reply via email to