Encoding Questions
Ad
JSON charset problem when sending to firebase from js
I'm saving data to firebase rtdb through js sdk (6.3.1) using: firebase.initializeapp(firebaseconfig); var data={
puts and printf do not give out full text (text containing CJK characters), when the text is read from a local file, on Windows, MSVC
The text contains: ..... (some characters can't be posted on so) xxxxxxxx=xxx xxxxxxx=xxxxx://xxx..xxx/xxxxx/xx9528994
Microsoft Excel mangles Diacritics in .csv files?
I am programmatically exporting data (using php 5.2) into a .csv test file. example data: numéro 1 (note the accented e). the
How to make nntplib author name human readable?
Python nntplib is giving me author name such as , "=?utf-8?b?rgvubmlziejhc2hhbq==?= < [email protected] >" (quotes for
How to set encoding in .getJSON jQuery
In my web app, i submit some form fields with jquery's $.getjson() method. i am having some problems with the encoding. the
R database connection encoding mistakes with accents
I am connecting to a sql server database using this code: dbi::dbconnect(odbc(), driver = "...",
force encoding to work on request made for laravel api by web browser
I am maintaning an api that have some requests made by a front-end app. when i call it from
Having trouble reading xml file with getResource().readText()
I'm trying to read different xml files from resources in my project and after searching around for a while i found that
Encode string to cp852 in Angular/Ionic - iconv-lite
Iam working on mobile app, which uses bluetooth printer to print bills. to get bill printed with correct diacritics, i need to encode it to
decode response of get request for persian websites
I'm writing function for send request and get response of websites and parse of content of it... but when i send request to persian sites it cant
Ad
Encode to UTF-8. Encode character eg. ö to ö
I want to encode a string in android to utf-8. for example this string: grüne Ähren beißen flöhe to
Having issue with character encoding while processing a text
I am trying to process a large corpus but in preprocess_string( ) it returns an error shown below traceback (most recent call
Facebook/messenger archive contains emoji that I am unable to parse
I can' figure out how to decode facebook's way of encoding emoji in the messenger archive. hi everyone, i'm trying to code a handy
Outputting matrix with softmax activation on each row in TensorFlow model
I am constructing a tensorflow (2.0) model which takes an image (30x100 matrix) as input and wish to be able to have outputs (and labels) of the
Downloading UTF-8-sig csv file to user
I set both content_type and to_csv encoding as utf_8_sig response =
UnicodeEncodeError: 'ascii' codec can't encode character '\xe9' when printing in UTF-8 locale
I am cleaning the monolingual corpus of europarl for french
Encoding a feature in Dataframe (both Numerical and Non Numerical)
I want to encode a feature that contains both non-numerical and numerical information. this is my code import pandas as pd from
How to fix replacement character (�) when I want to print cyrillic symbols from file?
When i'm reading lines from file i'm trying to print some strings which contain english and russian words. i'm getting replacement characters
Wondering about Encoding algorithm in Scikit-Learn
I want to encode an ordinal variable. for example, the satisfaction from customers with 4 levels, very good, good, moderate, and poor. i've tried
Fixing Facebook JSON Encoding in Node Js
I'm trying to decode the json you get from facebook when you download your data. i'm using node js. the data has lots of weird unicode escapes
Why I get 'can't assign to operator' error?
When i try to assign labelencoder() to label_encoder, i get an error: syntaxerror: can't assign to
Ad
Pandas Dataframe: How to split one column into multiple one-hot-encoded columns
I have a text file like this: 444537110 3 11112111022002200022022111121222002... the
Pandas, reverse one hot encoding
I one hot encoded some variable and after some computation i would like to retrieve the original one. what i am doing is the
Sending multiple images FROM python server TO the react front
I am trying to send 2 pngs(or jpeg or any other format) images from my flask server to my reactjs front to display them there. i'm not sure how to
Convert <class 'bytes'> to string of '0' and '1' python
How can i convert object of class 'bytes' b'\xd2\x9f\r' to string of '0' and '1'
JavaScript: Convert Hindi numeral to Arabic one on fly while typing in an input text
I am trying to create a javascript code to convert hindi numerals [١،٢،٣،٤،٥،٦] to arabic numeral [1,2,3,4,5,6] on fly. this means i
Kendo grid exports headers in some languages with encoded chars
I face some problems with export to excel in kendo grid. the problem is that the headers are encoded in the excel. i use kendo ui with jquery the
Proper way to evaluate classification model ('UndefinedMetricWarning:')
I am currently using a neural network that outputs a one hot encoded output. upon evaluating it with a classification report i am
Decoding function gives error that will not be fixed by encoding it
My code encrypts a file, and the second part will decrypt it. it works fine with txt files but if i put a .docx through it it throws up an error
Uploading Base64 encoded image to server - 400 Server Error
I'm uploading base64 encoded image to the
Python One Hot Encode Multivariate Variable
Here is my dataframe: name job a back-end engineer b front-end engineer;product manager c product
AES decryption with PyCryptodome does not produce the expected result
I have some difficulties reproducing aes encryption and decryption in python. context: a year ago, i created a small
Ad
UnicodeDecodeError: 'utf-8' codec can't decode byte 0x9d in position 0: invalid start byte when I execute the ` b.decode()`
I have a code like bellow: cn_bytes = [157, 188, 156] cn_str = "" clen = len(cn_bytes) count = int(clen / 3) for x in
Is there a way to get the perfect (proper format) values from web page using encoding in python?
Problem : things on webpage like amd ryzen™ 9 5950x, when i am getting it into csv file it shows up as : amd ryzenâ„¢ 9 5950x, 90°c shows
create one-hot encoding for values of histogram bins
Given the tensor below of size torch.size([22]) tensor([-20.1659, -19.7022, -17.4124, -16.7115, -16.4696, -15.6848,
onehot encoder in keras
I would like to index the maximum value (onehot encoder) of an instance of inputs in the keras model. i know how to preprocess it but i would like
How to decode a URL in nodejs?
I am trying to decode a url and also format it with url module in nodejs.
PL SQL Remove HTML Encoding
I know you can remove html tags with a command such as this: regexp_replace(overview, '<.+?>') but, some of
Making an app like Udacity - How to host video files?
I'm building an android app that works similar to udacity app. my requirements all my videos should only be viewed via
convert io.StringIO to io.BytesIO
Original question: i got a stringio object,
How to make scrapy output info show the same cjk appearance in debian as in windows?
Import scrapy from info.items import infoitem class infospider(scrapy.spider): name = 'info' allowed_domains =
Nv21 byte data saving as colorful H264 format in android
I am getting video from nv21 byte data to use below code and i saved it .h264 format extension but my video doesn't have color in background.
How can I create and fit vocab.bpe file (GPT and GPT2 OpenAI models) with my own corpus text?
This question is for those who are familiar with gpt or gpt2 openai models. in
Ad
Android studio doesn't recognize UTF-8 encoding
The problem is that when i use utf-8 characters like ā, ē, š android studio translates them to some different
Depth-wise concatenate in Keras
I'm trying to depth-wise concat (example of implementation in
How to encode polish characters
I have code thanks to whom use wysciwyg editor (and uploading photo correctly from editor). the part of this code looks like this
How to encode time strptime format
I have a python code for time.strptime and the format is like this: start_date =
react-native-bluetooth-escpos-printer Encoding Turkısh Chracter Problem
I want to send print turkish parameter from react-native app to bixolon spp-r310 printer. my code is : async
UnicodeEncodeError: 'charmap' codec can't encode character '\ufeff' in position 0: character maps to <undefined>
I'm working on an application which is using utf-8 encoding. for debugging purposes i need to print the text. if i use
UnicodeEncodeError: 'ascii' codec can't encode character in print function
My company is using a database and i am writing a script that interacts with that database. there is already an script for putting the query on
lxml in Python: Scraping shows only English characters (others are garbled)
Here is my code: import requests from lxml.etree import html title_req =
python failure on output redirect/pipe
In my following python code # coding: utf-8 # generate.py my_locale = [ { 'tag':'test_tag_long__body',
How to convert XML enconding in Node
I'm trying to parse xml file in node with
Preventing blade php function from encoding symbols
I have a route calls in my code to show an image inside a folder that has a couple subfolder based on categories. this is my route call in
Ad
All android project file encoded wrongly
All my android studio file is not showing original code. all java and xml file affected. when i open a file it shows "file was loaded in the wrong
Base64 encode file in map function
I need to create my own file array to send to a rest. i send some files true a form and need to base64 encode the file value in the array.
Android Notification doesn't handle special characters
I am using firebase message service to send notifications , but i have an issue in showing special accentuated characters on devices and
Issue in encode/decode in python 3 with non-ascii character
I am trying to use python3 unicode_escape to escape \n in my string, but the challenge is there are non-ascii characters present in the whole
Encoding and decoding binary data for inclusion into JSON with Python 3
I need to decide on a schema for including binary elements into a message object so that it can be decoded again on the receiving end (in my
C# File.ReadAllText Encoding.Utf8
I try to read string from a html file. here is my code: string result = file.readalltext(@"c:\temp\invoice.html",
Separate server for video encoding?
I'm making a website that will handle video upload and encoding. my idea was to have the main server handle both client requests and video
NodeJS - Saving TXT file with ANSI encoding
I created in my linux pc a simple app that generates txt files using fs nodejs command. but i need read those files with an external
Why Azure appsettings encoding bring me wrong chars?
I have a problem whit the azure appsettings encoding. i have a node.js application deployed into an app service. when calling the
Set the (default) encoding of a SQLite database through python
I want to create a sqlite database through the python driver. as the application will run on different operating systems i want to explicitly
Converting object to an encodable object failed: Instance of 'Offset'
I'm trying to send dart offset points by encoding it to json format using 'dart:convert' library. i have gone through the documentation
Ad
Node.JS how to decode ISO-8859-1 into UTF-8?
I'm querying a database in iso-8859-1 but since node runs in utf8 mode, i must convert the data being returned this particular dbms. i
inverse the binarized dataframe to original categorical values after un-pickling
I am trying to solve a classification problem where the label column contains string values. steps followed in training the model
Euro symbol are not displayed when pass from MSSQL to PHP
I'm passing data from mssql server to php using laravel. after, i have to pass data back to save it in a database. strings which contain
Python unicode accent a (à) hex
I have a string from bs4 that is s = "vinili-disponibili/311-canzoniere-del-lazio-lassa-st\u00c3\u00a0-la-me-creatura.html"
There are weird characters even though it's encoded utf-8
I spent my last 3 hours to solve this problem even though there are plenty of solutions. it just doesn't work for me, i suspicious of if the
Wierd binary-string for values in CSV-file (import in Laravel containing danish æ, ø and å-letters)
I have a file that has the mime-type: text/csv. i want to iterate through it and make a bunch of string-manipulation.
Hex to String & String to Hex conversion in nodejs
I need to convert data into string to hex and then again from hex to string using nodejs 8 i have issue while decoding from hex to
How to properly encode strings so to decrypt with CryptoJs in NodeJS?
I am working out a custom hybrid encryption system. i've got symmetric encryption & asymmetric encryption & decryption all handled
Android: sending string from EditText with JSON to PHP - encoding troubles
I'm having troubles with encoding text from android edittext when sending it with json to php script. first in android i get the text from
Decoding strings from textfile
I have a text file that is reading in another application's script. this how it looks like in notepad: Одинцовская
Express URIError: Failed to decode param
I'm using next.js with a custom express server when the params of a request contains % it causes this error: urierror:
Ad
Strange character when reading NFC tag
I am trying to read an nfc tag using android. i'm a beekeeper and this is to id my hives when i approach them. i have searched here but i am still
Wrong vector size of OneHotEncoder in pyspark
I have tried to check the output of the onehotencoder in pyspark. i read in forums and documentation of the encoder that, size of the encoded
Encoding Issue on a while loop Python
Ok, so i'm trying to create a small programme that creates a hash for each text input. the first loop is fine, it gets the right hash,
How to encode words in a list in Python
I have a dictionary where i have each word as a key and a corresponding integer value, such as : {'me': 41, 'are': 21, 'the': 0}
Hard in Javascript interview
Everybody. several days ago an interviewer asked me a question. and i couldn't answer it. may be at this site exists some guru js. =)
Unicode Encode Error 'latin-1' codec can't encode character u'\u2013' in position 4939: ordinal not in range(256)
I'm trying to render a pdf file for a transaction report in django. most of the transaction works fine. some throws this error unicodeencodeerror
Python TypeError: encoding with 'cp1252' codec failed
I get this error when i run any installation command: complete output from command python setup.py egg_info: typeerror:
Does Perl 6 have an equivalent to Python's bytearray method?
I can't find bytearray method or similar in raku doc as in python. in
One hot encoding error python machine learning
I am working with categorical variables in machine learning.here is sample of my data:
Find encoding based on input and output
I have a byte representation of a string, no idea what is the encoding, i know that b'\x04\x00\x00\x00\xf0\x9f\x90\x9f\x00'
Create a folder with special characters in Python
I'm trying to create a folder in python with os.mkdir, but i haven't been very successful. the thing is that i want to go through a
Ad
Convert listdir() return to byte for decoding
I have a list of dir with name encoded in 'gbk', for example: dirs |- b'\xb6\xb0'/ |- b'\xc1\xb1'/ |- b'\xc9\xdd'/
Does anyone know a good heuristic for detecting UTF-8 badly decoded as Latin-1 text?
I'm getting weather alerts from a weather service. although the http response claims to be utf-8, clearly it contains some text like this:
Is this one hot
Reading :
Detect if execution character set letters are contiguous
In the code, a switch is used to convert letters to contiguous values. optimizing compilers in general won't do the job as well as the simple
Getting wrong Base64 for image in Swift4
I want to generate base64 string for a specific image. for that i've wrote below code let imagedata =
How to write to file in java by windows-1256 encoding
I am trying in java 8, for "windows-1256" file writing my last try was : string win1256="..."; //
JSP(Java): Encoding byte array and use in JavaScript same in C#
I use this code in c#.net to send challenge to web page. rngcryptoserviceprovider rng = new rngcryptoserviceprovider();
What shape should take y data when predicting corresponding list for another list
Background there are two lists of characters. one list contains piano notes and another string notes. idea is to train model to predict
How to Convert a javascript object to utf-8 Blob for download?
I've been trying to find a solution that works but couldn't find one. i have an object in javascript and it has some non-english
What is the appropriate character encoding for a git repo?
Specifically what encoding to use if the repo has both code and docs? any .md or .htm files are saved as utf-8, but code is cp1252 (my compiler
Test serialization encoding
What is the best way to verify/test that a text string is serialized to a byte array with a certain encoding? in my case, i want to verify
Ad
One hot encoding for sales prediction and kernel died
I am trying to forecast sales in daily basis and have a dataset 858935x15 features. before feeding features to model, i want to make one hot
Ad
Blog Categories
Ad