Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upUTF-8 encoding #85
Comments
This comment has been minimized.
This comment has been minimized.
|
your issue doesn't state what the problem is... |
This comment has been minimized.
This comment has been minimized.
Tink-
commented
May 4, 2015
|
Sorry, I apparently lost a part of my text. The problem is that after converting the array to a stream, the utf8 characters are converted. |
This comment has been minimized.
This comment has been minimized.
|
converted to what? |
This comment has been minimized.
This comment has been minimized.
|
can you provide code I can run to reproduce the problem? |
This comment has been minimized.
This comment has been minimized.
Tink-
commented
May 4, 2015
|
Converted to non-UTF8 characters, like the ones listed here: On Mon, May 4, 2015 at 9:26 AM, Dominic Tarr notifications@github.com
|
This comment has been minimized.
This comment has been minimized.
|
Read array is dead simple and doesn't concatenate any values so it should not do anything to alter the strings. My guess is that the problem is in jsoncsv though I don't really know because you haven't given me any runnable code. You are basically expecting me to figure out what you are trying to do and then solve your problem too, for free... This is not how open source works. How open source works is you help me find problems with my code and I help you with your problem - it's reciprocal. Its a skill and ita okay I'd you are still learning it |
dominictarr
closed this
May 5, 2015
dominictarr
reopened this
May 5, 2015
This comment has been minimized.
This comment has been minimized.
|
Oops. You need to put more effort into how you ask for help otherwise you make it hard to help you |
This comment has been minimized.
This comment has been minimized.
Tink-
commented
May 5, 2015
|
Sorry this took so long. This is the code I used to test it, I attached the var util = require('util'); var options = {fields: [ var results = []; fs.readFile(htmlFile, 'utf8', function (error, htmlData) {
{encoding: 'utf8'}); Thanks in advance for all the help, On Tue, May 5, 2015 at 2:48 AM, Dominic Tarr notifications@github.com
|
This comment has been minimized.
This comment has been minimized.
|
can you put this in a gist with package.json and the html file? |
This comment has been minimized.
This comment has been minimized.
|
Closing for lack of reponse |
Tink- commentedMay 2, 2015
I am using your event-stream module in combination with json-csv to create a CSV file from an array of objects. Some elements contain text with utf-8 characters. When using readArray, these characters are converted. I am using the following code to save the file: