Skip to content
This repository has been archived by the owner on Jun 11, 2019. It is now read-only.

Cut cyrillic symbols in createMedia #10

Open
Gesha3809 opened this issue Mar 31, 2011 · 1 comment
Open

Cut cyrillic symbols in createMedia #10

Gesha3809 opened this issue Mar 31, 2011 · 1 comment

Comments

@Gesha3809
Copy link

When set name or description in createMedia method with cyrillic(windows-1251) symbols (ыияюъії etc.), function json_encode($post); //line 515 in bc-mapi.php
cut symbols. As result in request name and description = NULL, and response error:
BCMAPIApiError: API error' == Required field name is not set.
My solution :
(line:487 - ..., file:bc-mapi.php )
iconv("windows-1251", "UTF-8", $media['name']);// when it's necessary

@gpelletier
Copy link
Contributor

Hi Dancer3809,
I don't think this problem should be solved in the bc-mapi.php but before the string is passed to the createMedia function.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants