youtube / spitfire

A high-performance Python template language
BSD 3-Clause "New" or "Revised" License
403 stars 59 forks source link

Fix issue #7: Resolved unicode decoding exception in simple_str_filter #92

Open thehsansaeed opened 2 months ago

thehsansaeed commented 2 months ago

Fixed issue https://github.com/youtube/spitfire/issues/7: simple_str_filter was throwing an exception for unicode placeholders. Updated the code to handle unicode placeholders correctly without raising an exception.

The issue was that the simple_str_filter function was throwing an exception for unicode placeholders. This problem occurred when trying to encode unicode characters with the default filter, resulting in a unicode decode exception.

The fix involved updating the code to handle unicode placeholders correctly without raising an exception.