A
A
Alexander2016-02-13 12:43:08
PHP
Alexander, 2016-02-13 12:43:08

What encoding should the string with given characters be converted to?

Guys, hello everyone.
There was a following problem:
There is a site on windows-1251
I Parse the information from other site which on utf-8.
String: Traditional .
Without iconv processing, it renders as: TradiciГіn.
Can you please tell me how can I convert the string to be displayed as Tradición ?
iconv("utf-8", "ISO-8859-1//TRANSLIT", $name) - Tradición
iconv("utf-8", "cp1251//TRANSLIT", $name) - Tradici?n
Thanks in advance for your help .

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Silm, 2016-02-13
@Silm

But how do you want the character that is not in it to be displayed in the Cyrillic windows-1251 encoding?
And why does the site have windows-1251 encoding at all, especially since it is necessary to display characters that are not contained in it?

T
ThunderCat, 2016-02-13
@ThunderCat

Here about transformations, it may help, although today the site at 1251 is only from a strong dislike for oneself or "inherited".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question