Skip to content

Conversation

@mwoodward
Copy link
Contributor

In the translate() function, I changed text to be translated in the parameters dictionary to UTF-8 encoding. I needed this to allow Japanese strings to be translated. Otherwise, urlencode() in the call() function would fail with a UnicodeEncode exception.

This change does not have any affect on legacy ASCII strings.

…dictionary to UTF-8 encoding. Conversion is needed to allow Japanese strings to be passed to urlencode().
sharoonthomas pushed a commit that referenced this pull request Jul 16, 2011
Change text string to be translated to UTF-8 encoding.
@sharoonthomas sharoonthomas merged commit 6e35aa6 into openlabs:master Jul 16, 2011
@sharoonthomas
Copy link
Contributor

Thank you for your contribution.

@mwoodward
Copy link
Contributor Author

You're welcome.

Thank you for your great tool! :-)


Maceo

On Sat, Jul 16, 2011 at 9:56 AM, sharoonthomas <
reply@reply.github.com>wrote:

Thank you for your contribution.

Reply to this email directly or view it on GitHub:

#1 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants