# Print string from readavailable now seems to get a wrong encoding

**URL:** https://discourse.julialang.org/t/print-string-from-readavailable-now-seems-to-get-a-wrong-encoding/115712
**Category:** Web Stack
**Tags:** question, http, streaming, print
**Created:** [June 16, 2024, 9:23am UTC](https://discourse.julialang.org/t/print-string-from-readavailable-now-seems-to-get-a-wrong-encoding/115712 "2024-06-16T09:23:44Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sylvaticus](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/sylvaticus/32/203883_2.png) [@sylvaticus](https://discourse.julialang.org/u/sylvaticus)
#### Post date: [June 16, 2024, 9:23am UTC](https://discourse.julialang.org/t/print-string-from-readavailable-now-seems-to-get-a-wrong-encoding/115712/1 "2024-06-16T09:23:44Z")

</div>

This was working “before” but now produces strange symbols in the output (like a binary output):

```julia
using HTTP
HTTP.open("GET", "https://julialang.org/") do io # Note the SSL support
    while !eof(io)
        println(String(readavailable(io)))
    end
end

```

Output extract:

```julia
.��N���)�m@Cx�y�q�yc��F��&��q�D,qt%&2q<w`_�/�����"��8�Ɇ�{2d!� Ӂ���'"g��x���dĕ�s�!�\�1����Z׻�}y3n^{�ܺ`��� '��Y�����
7aQ��= ߱ƀ��\�侱Ӆ�L�
c����6�Z�(�A�z��UL��� ���XC�_<����Coy�U?AD�!��H&!E��Hv\0x�pB��8����c ��7S��tx3��>Xa�z����Q��D�\s���
>c$�M���ݠG�ϵ8�N��0Mҁ c������f�㇩�k�^��8���Hh
�= }�-�3C��"u��Xlɦ�e��f0:�`Ϛ
                                 e����p
(y���.Bg ���X]e���4N�m7p�]�u"��4?����c_(��1|�AX�BW~�n�7<�tl��1��k47�,�J�vC�
                                   C�&
                                      �E �<������c!�N�>N���8l���ӳ�Z8sQ[�g��
׍x�\�|��_���=��0���ZH��4>�
����aY���&��<������hا@��^�,�O0=4�KPGv�s�>ﵛ��8:���i�@*�����G�)���YȲ���.[���shw���[�\ ��W}Öfj��֧�4�ġ�Y=�%��UMO�}��i[�)�?�^�4q��
(��9���ZJ2]�i�.
�����z����-��� L_�H�
ۖ%86ai9d�M�@n���pՈ�*/
�:aa�*~�?�'ő��X(�
                 �䂕�����T&��z�2k�

```
