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

Cut cyrillic symbols in createMedia #10

@Gesha3809

Description

@Gesha3809

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

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