The Movie Database Support

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

7 replies (on page 1 of 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

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login