crowdint/rails3-jquery-autocomplete — Issue #132: Problem with cyrillic symbols
Author: greyrain
Created: 2012-01-22 05:23:49+00:00
State: open

I installed the rails3-jquery-autocomplete and everything works well. But when I enter сyrillic characters, I see encoding problem:

JSON:
[{"id":"16","label":"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd","value":"\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd\ufffd"}]

Please, help, how to use encoding, or what must i do.

autocomplete :country, :name do |items|
CustomJSON::Encoder.encode(items)
end