Infos:
- Used Zammad version: 3.2.0-1580110414.992e734c.centos7
- Used Zammad installation source: yum
- Operating system: centos7
- Browser + version: Firefox 68.4.2esr / Chrome 79.0.3945.130
Expected behavior:
Add a new translation with special chars (e.q. äöüÄÖÜß) for attribute (source: https://docs.zammad.org/en/latest/admin/console/other-usefull-commands.html#add-translation) via rail command without error.
Actual behavior:
Ruby throws an invalid multibyte char (US-ASCII) error. No translation created.
Steps to reproduce the behavior:
###@### ~ # zammad run rails c
Loading production environment (Rails 5.2.4.1)
irb(main):001:0> Translation.create_if_not_exists( :locale => 'en-us', :source => "Aufzüge", :target => "Lifts", format: 'string', created_by_id: 1, updated_by_id: 1 )
Traceback (most recent call last):
SyntaxError ((irb):1: invalid multibyte char (US-ASCII))
(irb):1: invalid multibyte char (US-ASCII)
I also tried it the other way with
Translation.create_if_not_exists( :locale => 'de-de', :source => "Lifts", :target => "Aufzüge", format: 'string', created_by_id: 1, updated_by_id: 1 )
still not working.
Background
I want to translate the attributes of a tree select from german to english.
I tried the same for ‘Sonnenschutz’ with the translation ‘Sun protection’. This worked without any error.
Does anyone has the same error or know how to solve this?