FileBC and UTF-8

4 messages Options
Embed this post
Permalink
Mikael Beermann

FileBC and UTF-8

Reply Threaded More More options
Print post
Permalink
I need to read an UTF-8 encoded file into a BPEL process using the FileBC, but this will make the file corrupt because the characters encoded will multiple bytes are not encoded correct. Is there a way to make the FileBC read UTF-8 in a correct manner, or are is there some other work-around this problem.

/Mikael
Jim Fu

Re: FileBC and UTF-8

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
set file:message->charset=UTF-8 will make the message payload be unmarshalled in UTF-8:

wsdl excerpt - binding section:

    <binding name="FileInboundBinding" type="tns:FileInboundPortType">
        <file:binding/>
        <operation name="poll">
            <file:operation verb="poll"/>
            <input name="input1">
                <file:message fileName="input.xml" pollingInterval="1000" use="literal" part="part1" charset="UTF-8"/>
            </input>
        </operation>
    </binding>

WSDL editor view...



HTH
Jim

Mikael Beermann wrote:
I need to read an UTF-8 encoded file into a BPEL process using the FileBC,
but this will make the file corrupt because the characters encoded will
multiple bytes are not encoded correct. Is there a way to make the FileBC
read UTF-8 in a correct manner, or are is there some other work-around this
problem.

/Mikael
  


Mikael Beermann

Re: FileBC and UTF-8

Reply Threaded More More options
Print post
Permalink
Thanks!

I had an old version of FileBC, after upgrading the file BC, the charset attribute was available.

/Mikael

Jim Fu

Re: FileBC and UTF-8

Reply Threaded More More options
Print post
Permalink
no problem
regards
--Jim

Mikael Beermann wrote:
> Thanks!
>
> I had an old version of FileBC, after upgrading the file BC, the charset
> attribute was available.
>
> /Mikael
>
>
>  


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]