Category "encoding"

Node.js get image from web and encode with base64

I'm trying to fetch an image from the web and encode it with base64. what i have so far is basically: var request = require('request'); var BufferList = requi

french accents giving "<?>" in http responses with correct charset (Java)

Calling an API that returns french sentences, all the accented characters are displayed like <?> in my java code, even if the charset is well defined (app

Does flash support Opus codec?

I have googled this but not getting a clear answer. As far as i understand FLV container format currently support the following audio formats MP3, ADPCM, Linear

Native JavaScript support for HTML attribute encoding and JavaScript string encoding?

Attribute values need to be encoded. If I'm building a jQuery object like so: $('<div data-value="' + value + '">'); Really, value must be attribute enc

How to convert binary string to normal string in php

Description of the problem I am trying to import email content into a database table. Sometimes, I get an SQL error while inserting a message. I found that it f

Getting ValueError: y contains new labels when using scikit learn's LabelEncoder

I have a series like: df['ID'] = ['ABC123', 'IDF345', ...] I'm using scikit's LabelEncoder to convert it to numerical values to be fed into the RandomForestC

Fix string encoding issues

Does anyone know of a .Net library (NuGet package preferrably) that I can use to fix strings that are 'messed up' because of encoding issues? I have Excel* fil

How do I determine file encoding?

Is there a git command that returns file encoding like file in Linux? That completely describes my problem. I tried searching Google but found nothing.

How to remove unwanted @charset "UTF-8" from CSS (shows up after compiling SASS files)

A quick summary of our problem: We've got a @charset declaration prepended to our compiled CSS files Our SCSS files do not have this declaration so it gets adde

Nodejs: convert string to buffer

I'm trying to write a string to a socket (socket is called "response"). Here is the code I have sofar (I'm trying to implement a byte caching proxy...): var ht

Pickle encoding utf-8 issue

I'm trying to pickle a pandas dataframe to my local directory so I can work on it in another jupyter notebook. The write appears to go successful at first but w

How to decode XML entities?

To encode a string to XML, the xmerl_lib:export_text function does the job, but which function does the opposite job, i.e. converts &lt; to >? I want to