Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Base 64 Encoded file not having valid utf-8 characters?

807603Oct 18 2007 — edited Oct 18 2007
Hi everyone,
I'm using apache commons's Codec and BCodec to try and encode a file in Base 64 so I can send it in xml from a web service. But when I try to validate the xml (using xerces' lib) it complains that invalid characters are in the element, that do not belong to the utf-8 charset. I've tried using BCodec to specify the encoding but then I got a different error. I've read in the forums that Base 64 contains only A-Z., a-z, 0-9 stuff like that. How can they be invalid in utf-8;
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 15 2007
Added on Oct 18 2007
14 comments
2,192 views