Category "encoding"

Go binary.Read into slice of data gives zero result

I want to read and write binary data to file and my data is simply slice. The encoding part is working, but my decoding via binary.Read gives zero result. What

How to find encryption/encoding of a text

The text I have is from some malware and while trying to analyze it I found this text. It runs some powershell command. But It is encoded. Seems like base64 but

Python, typeerror about string and bytes

I used Youtube API and got list of comments. And trying to change it into single string so I can use konlpy. a = str(' '.join(c)).encode("UTF-8") But I got

Ordered (n choose p) binary encoding and decoding

I want to 'impose' order on (n choose p) binary and be able to encode/decode items. Below you can see an example of p=2. For p > 2 it will need more loops. B

springSecurityService.encodePassword for Spring Boot only

I have a legacy app made in grails which uses springSecurityService.encodePassword to generate user password. It's stored in database like this: {bcrypt}$2a$04$

NodejS Read/Write Binary Data to/from file

Alright, so I have a string with binary data ("111011 10001 etc"), and I'm trying to save it to a file to them read it on another file using streams, the issue

How to convert iso 8859 string to UTF8 in a postgresql 12 database?

EDIT : I think I was not clear, I am sorry for that : I have a column with bytea data. This column, when I apply encode(column,'escape') to it, I got text in th

Is it possible to convert Unicode ASCII bytes[ ] to actual strings(Hi)

Is it possible to convert following bytes[] to a string as "Hi". Currently it is showing as "H�" //"Hi" - is actual message byte[] bytes = {72,175}; stri

UTF-8 encoding java replacement with 3 hex character

My application is receiving data from an endpoint. I do some processing with the received data and insert it into the database. At some point I had a problem wi

Integer encoding format

I've run across some PIN encoding which I'm trying to figure out so I can improve upon a web application used at my place of work. When I reset users' PINs (in

How to get python to tolerate UTF-8 encoding errors

I have a set of UTF-8 texts I have scraped from web pages. I am trying to extract keywords from these files like so: import os import json from rake_nltk import

Enter is converted to gibberish code after system()

When I use C++ to invoke Python program output (By system command with parameters), it outputs gibberish code at the end of line. After that, I couldn't input a

What is the encoding of CompletedProcess.stdout coming from Powershell/Windows in Python?

I am getting this output from a ping request started from Python with subprocess.run(): >>> process.stdout b"\r\nEnvoi d'une requ\x88te 'ping' sur www.

How to fix unsupported text encoding in VS code

I have imported a folder of a web project and I was not able to run it due to this error in some files“the file is not displayed in the editor because it

Encoding HttpClient Genexus

I'm trying to do a POST with an endpoint. In Postman it is working fine. One of the fields in JSON needs to be send with line breaks. In genexus I'm adding the

C# Encode Bitmap to DDS (DXT1, DXT3, DXT5)

I have a simple Bitmap in my app. I need to save it as DDS (Direct Draw Surface) not like a simple image with .dds extension, but need to encode pixel data and

php stdin input return blank value with arabic chars

i'm makin my own php cli but i need to use arabic letters so fgets return blank value from command line input Knowing i'm using powershell to run commands funct

R import of stata file has problems with French accented characters

I have a large stata file that I think has some French accented characters that have been saved poorly. When I import the file with the encoding set to blank, i

Why is # not escaped?

Feeling a little dumb here. I have this string http://www.example.com/foo/bar#4.png?token=1441307151_4492f25946a2e8e1414a8bb53dab8a6ba1cf4615 Because the file

bson.errors.InvalidDocument: cannot encode object of object having list of Object

I have a class defined in below form class B(): xyz: int class C(): abc: int Class A(): bList: List[B] cList: List[C] iex : int MongoDb Save Operation