Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

column subgroups don't accept non-ASCII symbols #52

Closed
ghost opened this issue Dec 10, 2010 · 2 comments
Closed

column subgroups don't accept non-ASCII symbols #52

ghost opened this issue Dec 10, 2010 · 2 comments

Comments

@ghost
Copy link

ghost commented Dec 10, 2010

/home/korobkov/work/devel/perth/app/controllers/book_descriptions_controller.rb:34: invalid multibyte char (US-ASCII)
/home/korobkov/work/devel/perth/app/controllers/book_descriptions_controller.rb:34: invalid multibyte char (US-ASCII)
/home/korobkov/work/devel/perth/app/controllers/book_descriptions_controller.rb:34: syntax error, unexpected $end, expecting ')'
...create.columns.add_subgroup("а�аГаЛаАаВаЛаЕаНаИаЕ аИ б�аКаАа...

Setting # encoding: utf-8 at the first line of file does help, but the strange thing is without this line UTF-8 is rejected only in subgroup! When I set conf.label = "some non-ASCII chars" it works even without this line!

config.encoding = "utf-8" is set in application.rb.

ruby 1.9.2, rails 3.0.3, AS - the latest commit from git master branch.

@vhochstein
Copy link
Owner

Well, at least you ve got a way to manage this. Unfortunetly, I do not have an answer why it works for label and not for subgroup.

@vhochstein
Copy link
Owner

The answer to your question may be found here: http://blog.grayproductions.net/articles/ruby_19s_three_default_encodings

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant