Answer the question
In order to leave comments, you need to log in
How to disable translit when getting json file?
When requesting the get.user vk api method, the vk server returns the following response
{"response":[{"id":1,"first_name":"Павел","last_name":"Дуров"}]}
{"response":[{"id":1,"first_name":"Pavel","last_name":"Durov"}]}
Answer the question
In order to leave comments, you need to log in
2. Common Parameters
Each API method has its own set of input parameters. In addition, there are general parameters that can be used in all methods:
lang - defines the language in which various data will be returned, for example, the names of countries and cities. It may contain a string designation of the language or its identifier (you can get the user's language identifier using the account.getInfo method).
ru (0) - Russian,
uk (1) - Ukrainian,
be (2) - Belarusian,
en (3) - English,
es (4) - Spanish,
fi (5) - Finnish,
de (6) - German,
it (7) - Italian.
Cyrillic names will be automatically transliterated into Latin for all languages except Russian, Ukrainian and Belarusian.
and you can not guess why and why. lang is lost, or the api selects the default language by itself according to the http headers. not the point.
minute of time to solve the problem.
....
PROFIT
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question