Skip to content
This repository was archived by the owner on Apr 25, 2025. It is now read-only.
This repository was archived by the owner on Apr 25, 2025. It is now read-only.

Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT #13

@nvchernov

Description

@nvchernov

Hi, I'm trying to use odata lib, and I have a problem while adding entity. Here my code:

entity = @conn['Catalog_Организации_КонтактнаяИнформация'].first
entity['Страна'] = 'Russia'
@conn['Catalog_Организации_КонтактнаяИнформация'] << entity

Any ideas?


ETHON: performed EASY effective_url=http://my_ip/BP/odata/standard.odata/$metadata response_code=200 return_code=ok total_time=0.354931
ETHON: performed EASY effective_url=http://my_ip/BP/odata/standard.odata/Catalog_%D0%9E%D1%80%D0%B3%D0%B0%D0%BD%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D0%B8_%D0%9A%D0%BE%D0%BD%D1%82%D0%B0%D0%BA%D1%82%D0%BD%D0%B0%D1%8F%D0%98%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D0%B8%D1%8F?$top=1 response_code=200 return_code=ok total_time=0.153906
ETHON: performed EASY effective_url=http://my_ip/BP/odata/standard.odata/Catalog_%D0%9E%D1%80%D0%B3%D0%B0%D0%BD%D0%B8%D0%B7%D0%B0%D1%86%D0%B8%D0%B8_%D0%9A%D0%BE%D0%BD%D1%82%D0%B0%D0%BA%D1%82%D0%BD%D0%B0%D1%8F%D0%98%D0%BD%D1%84%D0%BE%D1%80%D0%BC%D0%B0%D1%86%D0%B8%D1%8F(guid'0cf24680-4b64-11e3-ab73-001517c9f119') response_code=404 return_code=ok total_time=0.21395299999999995
Encoding::CompatibilityError: incompatible character encodings: UTF-8 and ASCII-8BIT
from /home/t/.rvm/gems/ruby-2.1.9/gems/odata-0.6.18/lib/odata/entity_set.rb:153:in `execute_entity_post_request'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions