sophie: A cartoon-like representation of a girl standing on a hill, with brown hair, blue eyes, a flowery top, and blue skirt. ☀ (Default)
Sophie ([personal profile] sophie) wrote in [site community profile] dw_dev 2011-01-26 05:56 pm (UTC)

Re: no apologies needed, thank you for pointing that out

Another option you could do - and probably a better one - is to allow the user to specify their preferred character encoding in the .rc. Then, you run that value through Encode::resolve_alias() to make sure it exists and is supported by Encode, and use the returned value in the open() call instead of "utf-8".

That'll cause Perl to read the file as if in that character encoding and convert it on-the-fly to UTF-8 internally. You'll then have UTF-8 data that you can send to the server. :)

Post a comment in response:

If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org