I am trying to insert characters like ä, á, ó, í, â etc. in the body of an Amazon SQS message. But these characters are converted to some other characters in SQS (e.g.,). Is there any way to solve this problem.
thanks
Thanks for answers. I think the best way to overcome this problem is to save the message body in AmazonSQS in HTML-ENTITIES format. Therefore, before saving the message, I encode it in HTML_ENTITIES format using the php method mb_convert_encoding (line $ str, line $ to_encoding [, mixed $ from_encoding]) .
If anyone has a better solution, feel free to add comments.
This is probably due to the problem of character encoding in your code. Recommended article on this topic - Joel Absolute minimum. Every software developer should absolutely, positively need to know about Unicode and character sets (without excuses!) .
It looks like your characters are encoded by UTF-8 somewhere, and the corresponding UTF-8 decoding operation is not performed as you expect.
try utf8_encode
I saw this was resolved on onlinemq but still exists in SQS
Source: https://habr.com/ru/post/1299282/More articles:How do you use a variable in $ _POST [] - postPHP: using simplexml to cycle through all levels of an XML file - xmlSimple modeling MATLAB / Octave - mathUse JavaMail or use a commercial component? - javaImplementing exception handling in ASP.NET 3.5 - exception-handlingHow to use conditional SQL expressions - sqlhttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1299284/dynamically-assign-special-methods-to-objects-but-not-classes-in-python&usg=ALkJrhhBEhLuO6GoDKV3Z44U3gUFGmi6jQF #: adding and removing event handlers - event-handlingShould objects in Java be static? - javaHow to completely change the appearance of a Win32 header line with Perl? - perlAll Articles