Does jcifs support japanese language?

View: New views
3 Messages — Rating Filter:   Alert me  

Does jcifs support japanese language?

by Devalekar, Paresh :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

We own Log Monitoring application where smb protocol is used through jcifs to access and read the logs remotely.

The monitoring works fine for Windows English but when start to monitor Japanese logs it fails.

 

Can anyone guide me on this? Does jcifs support Japanese language (unicode) at all?

 

Thanks,

Paresh

 


Re: Does jcifs support japanese language?

by Michael B Allen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, Sep 2, 2009 at 9:32 AM, Devalekar,
Paresh<Paresh_Devalekar@...> wrote:

> We own Log Monitoring application where smb protocol is used through jcifs
> to access and read the logs remotely.
>
> The monitoring works fine for Windows English but when start to monitor
> Japanese logs it fails.
>
>
>
> Can anyone guide me on this? Does jcifs support Japanese language (unicode)
> at all?

Please collect two network packet captures:

1. Japanese Windows client and server performing authentication and
file listing.

2. JCIFS trying and failing with the same server and parameters.

I will compare the two and see how different things are. In theory it
should work. I would need to compare captures to see how far away
JCIFS is from working with Japanese WIndows. If Japanese Windows is
using UTF-16 surrogates it's probably not worth the trouble.

Mike

PS: Do not send packet captures to the mailing list. Send them to me directly.

--
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/

Parent Message unknown Re: Does jcifs support japanese language?

by Michael B Allen :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Ok. Good. Please try to send all messages to the JCIFS mailing list.
Someone else may benefit from this solution.

On Fri, Sep 18, 2009 at 8:08 AM, Devalekar, Paresh
<Paresh_Devalekar@...> wrote:

> Thanks, Mike!
>
> Your hint on code pages works.
> We use the InputStreamReader constructor which have String Charset parameter and things works.
>
> Thank you very much for your help on this.
>
> -- Paresh
> -----Original Message-----
> From: Michael B Allen [mailto:ioplex@...]
> Sent: Tuesday, September 08, 2009 9:09 PM
> To: Devalekar, Paresh
> Cc: Agare, Amol
> Subject: Re: [jcifs] Does jcifs support japanese language?
>
> CIFS uses either UTF-16LE or a default codepage. The default codepage
> used by JCIFS is Cp850 or US_ASCII if Cp850 is not available. You
> could trying setting jcifs.encoding = Shift_JIS.
>
> Otherwise, I don't know. I would have to see captures.
>
> Also, please try to send all non-sensitive communication to the JCIFS
> mailing list.
>
> Mike
>
> On Tue, Sep 8, 2009 at 4:55 AM, Devalekar,
> Paresh<Paresh_Devalekar@...> wrote:
>> Hi Mike,
>>
>> Thanks for reply.
>>
>> Do you mean that JCIFS works if Windows is using UTF-16 only?
>>
>> We have issue: BPM Express for Log Management => problem in monitoring UTF-8 / SJIS encoded Japanese log files using SMB protocol via JCIFS.
>>
>> So in above case, if used UTF-16 does problem gets resolved?
>>
>> Thanks,
>> Paresh
>> -----Original Message-----
>> From: Michael B Allen [mailto:ioplex@...]
>> Sent: Thursday, September 03, 2009 3:00 AM
>> To: Devalekar, Paresh
>> Cc: jcifs@...
>> Subject: Re: [jcifs] Does jcifs support japanese language?
>>
>> On Wed, Sep 2, 2009 at 9:32 AM, Devalekar,
>> Paresh<Paresh_Devalekar@...> wrote:
>>> We own Log Monitoring application where smb protocol is used through jcifs
>>> to access and read the logs remotely.
>>>
>>> The monitoring works fine for Windows English but when start to monitor
>>> Japanese logs it fails.
>>>
>>>
>>>
>>> Can anyone guide me on this? Does jcifs support Japanese language (unicode)
>>> at all?
>>
>> Please collect two network packet captures:
>>
>> 1. Japanese Windows client and server performing authentication and
>> file listing.
>>
>> 2. JCIFS trying and failing with the same server and parameters.
>>
>> I will compare the two and see how different things are. In theory it
>> should work. I would need to compare captures to see how far away
>> JCIFS is from working with Japanese WIndows. If Japanese Windows is
>> using UTF-16 surrogates it's probably not worth the trouble.
>>
>> Mike
>>
>> PS: Do not send packet captures to the mailing list. Send them to me directly.

--
Michael B Allen
Java Active Directory Integration
http://www.ioplex.com/