[Ironpython-users] IronPython, Daily Digest 10/5/2012

no_reply at codeplex.com no_reply at codeplex.com
Sat Oct 6 17:31:24 CEST 2012


Hi ironpython,

Here's your Daily Digest of new issues for project "IronPython".

In today's digest:ISSUES

1. [New issue] Encoding Problems (Unable to translate bytes...)

----------------------------------------------

ISSUES

1. [New issue] Encoding Problems (Unable to translate bytes...)
http://ironpython.codeplex.com/workitem/33204
User wulfrraem has proposed the issue:

"Hi,

I'm working with a combination of IronPython and jinja2 but keep getting encoding problems from time to time when outputting special characters like 'ä' or returning such from python methods into jinja context.

For example the template:
{%- set test= 'ä' %}
{{ test }}

Can produce exceptions (System.Text.DecoderFallbackException) with the message 'Unable to translate bytes [E4] at index 0 from specified code page to Unicode.'

Adding a space character to the end of the second line can bypass this in some cases but this approach can't be used in larger templaes with a structure that changes depending on inputted data.

I guess that these errors stem from the IronPython part because the error messages are C#-Error messages.

Has someone any ideas about this or can give me a hint what I am doing wrong?"
----------------------------------------------



----------------------------------------------
You are receiving this email because you subscribed to notifications on CodePlex.

To report a bug, request a feature, or add a comment, visit IronPython Issue Tracker. You can unsubscribe or change your issue notification settings on CodePlex.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/ironpython-users/attachments/20121006/1cae652a/attachment.html>


More information about the Ironpython-users mailing list