P
P
pitimirov_a2015-11-26 19:39:40
PHP
pitimirov_a, 2015-11-26 19:39:40

How to transfer a UTF-8 string if it is deformed during transmission (due to encoding)?

In php I return a string like
blablabla blabla bla r kekkekkek kekkek kek t
I get something like киÑап книга t and that t is not deformed.
How can I pass data to php -> java?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
xbcaax, 2015-11-26
@pitimirov_a

If you have exactly data in UTF-8, then json_encode . Pay special attention to the php version, since below 5.3 is not set by default utf

K
Konstantin Dovnar, 2014-02-09
@Vimake

You declare it after the assignment.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question