I
I
Ivan Shumakov2019-11-06 15:28:16
PHP
Ivan Shumakov, 2019-11-06 15:28:16

How to correctly execute an Odata query?

I write in PHP. I execute a cURL request to 1C using the Odata protocol:

http://my.site/buh_from2019/odata/standard.odata/Catalog_Контрагенты

1C responds with an error:
Catalog_Контрагенты" entity is not found

As I understand it, there are some problems with the encoding.
Can you please tell me what to do?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan Shumakov, 2019-11-06
@ivanshumakov

Used a third party library

D
Dmitry Kinash, 2019-11-06
@Dementor

Work not with KOI-8R, but with UTF-8.
If you can't overcome encodings in PHP, then use urlencode().

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question