toretore / barby

The Ruby barcode generator
http://toretore.github.com/barby/
MIT License
844 stars 169 forks source link

/.../n has a non escaped non ASCII character in non ASCII-8BIT script #108

Closed ppeuscovich closed 9 months ago

ppeuscovich commented 3 years ago

Hello, I am trying to generate a barcode using the following code

require 'barby' require 'barby/barcode/code_128' require 'barby/outputter/png_outputter'

number = '1123456789876' barcode = Barby::Code128A.new(number)

If I run it in irb I get:

<Barby::Code128A:0x00005616b7f48930 @type="A", @data="1123456789876">

Now if I run it in the rails console or in the application, I get the following error: RegexpError (/.../n has a non escaped non ASCII character in non ASCII-8BIT script)

Do I have to configure something in the application?

Thanks!

Pablo.