Поддержка The Movie Database

Hello! I have a problems with symbols with my get/search. could you plz answer: which symbols are allowed?

7 ответов (на странице 1 из 1)

Jump to last post

@skirt_owner said:
status code 422
Hello! I have a problems with symbols with my get/search. could you plz answer: which symbols are allowed?

I never came across this problem. As far as I know everyone is allowed.
Please post a Requisition that you made that gave a problem because of symbol usage.

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are using.
Not the programming code you used to build the API Request.
But the API Request that is sent to the TMDb server.
Remember to replace your Key with THE_KEY , or something like that.

"7 aГ±os de matrimonio " or smth like this "PolГ­cia Federal - A Lei Г© Para Todos " but i found out that its incorrect movie title. it happend due to making the database i used with help of usual users. and i just playing with regex to get normal string and find right title with tmdb api so... i just forgot to close my problem

if its working with your api, i think problem could be with my inplication into get/search

Hi @skirt_owner, you need to escape your query string. Pretty much all languages have this as a built in function. Just as a simple example, in Ruby, it would look like this:

irb(main):001:0> string = "7 aГ±os de matrimonio"
=> "7 aГ±os de matrimonio"

irb(main):002:0> CGI.escape(string)
=> "7+a%D0%93%C2%B1os+de+matrimonio"

There's a also a built in URI.encode_www_form_component function which you can use in Ruby. Again though, this is just a single example in one programming language, you'll have to figure what the equivalent is for you.

thx a lot!

im using python and here is solution for all

That's not quite right, although might get you most of the way there. You don't need to inherently worry about unicode, that's a different problem.

This would be what you're looking for: https://docs.python.org/3/library/urllib.parse.html#urllib.parse.quote

Не можете найти фильм или сериал? Войдите на сайт, чтобы добавить его.

Глобальные

s фокусироваться на панели поиска
p открыть меню профиля
esc закрыть открытое окно
? открыть окно сочетаний клавиш

На страницах медиа

b назад (или выше, если применимо)
e перейти на страницу правки

На страницах сезонов

(стрелка вправо) перейти к следующему сезону
(стрелка влево) перейти к предыдущему сезону

На страницах эпизодов

(стрелка вправо) перейти к следующему эпизоду
(стрелка влево) перейти к предыдущему эпизоду

На всех страницах изображений

a открыть окно добавления изображения

На всех страницах правки

t открыть переключатель переводов
ctrl+ s отправить форму

На страницах обсуждения

n создать новое обсуждение
w сменить статус отслеживания
p публичное/приватное
c закрыть/открыть
a открыть страницу действий
r ответить в обсуждении
l перейти к последнему ответу
ctrl+ enter отправить своё сообщение
(стрелка вправо) следующая страница
(стрелка влево) предыдущая страница

Параметры

Хотите поставить оценку или добавить в список?

Войти