Project

General

Profile

Actions

Bug #14095

closed

erb ignores attempt to set encoding

Added by graywolf (Gray Wolf) over 6 years ago. Updated over 6 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.4.2p198 (2017-09-14 revision 59899) [x86_64-linux]
[ruby-core:83708]

Description

Erb seems to ignore any attempt to set encoding:

$ erb -U
<%= "a".encoding %>
^D
ASCII-8BIT

I've tried multiple ways to do this but I just can't convice it that the .erb file is in UTF-8. It insists on ASCII-8BIT.

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0