Cut cyrillic symbols in createMedia #10

Open
Dancer3809 opened this Issue Mar 31, 2011 · 1 comment

Comments

Projects
None yet
2 participants
@Dancer3809

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

This comment has been minimized.

Show comment Hide comment
@gpelletier

gpelletier Apr 15, 2011

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.

Contributor

gpelletier commented Apr 15, 2011

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 join this conversation on GitHub. Already have an account? Sign in to comment