Closed ppeuscovich closed 9 months 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:
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.
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.