You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sample Data:
python script to use as client to send encoded data
importrequestsAPI_ENDPOINT="http://127.0.0.1:9006"message='TÜRKÇE karakter test : ĞÜŞİÇÖışüğöç'r=requests.post(url=API_ENDPOINT, data=bytes(message,'cp1254'))
Steps to Reproduce:
run logstash with the pipeline
execute the python script
the console output is:
{"message":"T�RK�E karakter test : ������������","@version":"1","@timestamp":"2020-11-30T10:38:55.338Z","headers":{"connection":"keep-alive","request_method":"POST","http_accept":"*/*","http_user_agent":"python-requests/2.21.0","content_length":"35","http_version":"HTTP/1.1","http_host":"127.0.0.1:9006","request_path":"/","accept_encoding":"gzip, deflate"},"host":"127.0.0.1"}
This seems not to be a problem in the codec because I've tried with this pipeline (same codec, different input):
python script to use as client to send encoded data
This seems not to be a problem in the codec because I've tried with this pipeline (same codec, different input):
with the file attached as input data
cp1254_encoded.txt
and the console out is what's expected (
TÜRKÇE karakter test : ĞÜŞİÇÖışüğöç
)NB:
to reproduce the text file simply cut&paste the above string in a text editor and ask the editor to save it with encoding
CP1254
The text was updated successfully, but these errors were encountered: