csv

Oracle PL/SQL Import Japanese values CSV file

Hi. I am having problem with importing csv files containing values in japanese characters. When I do so it will display garbage when I query. my OS is japanese. My encoding for oracle NLS_LANG is JAPANESE_JAPAN.JA16SJISTILDE. I don't know what the problem is. When I try to import the very same file in some of my office mates' PC it just ...

are there any CSV readers/writer lib's in c#

are there any CSV readers/writer lib's in c# ...

Update Oracle table with values from CSV file

Hi, I have a CSV file which contains an ID and several other columns. I also have a table in oracle where the ID identifies a row. How can I best replace the values that are in the table with the values in the CSV file while keeping the other columns the way they were before? This has to be done with tools available in oracle itself (...

Unicode aware CSV parser in Java

I'm looking for Java implementation of CSV (comma separated values) parser with proper handling of Unicode data, e.g. UTF-8 CSV files with Chinese text. I suppose such a parser should internally use code point related methods while iterating, comparing etc. Apache 2 license or similar would work the best. ...

jquery table2CSV -> output file instead?

I'm using the table2CSV plugin and I'm trying to save the results to a file... I'm trying to use the modification mentioned in the "accepted" comment here: http://stackoverflow.com/questions/921037/jquery-table-to-csv-export (where the data is not appended to the url), but I just keep getting a blank csv file. Right now, the html look...

How do I put a download button on a site to get a CSV of a table Query?

How do I put a download button on a site to get a CSV of a table Query? Currently I am using "SELECT * INTO OUTFILE" to make the CSV file on the sever HD and is fine except... I want to create the CSV like I am now, but I want the "OUTFILE" to be saved on the clients computer when they click Download. <?php // Create new file name f...

Can a CSV file have a comment?

Hi folks, is there any official way to allow a csv formmated file to allow comments, either on it's own line OR at the end of a line? I tried checking wikipedia on this and also RFC 4180 but both do not mention anything .. which leads me to believe that it's not part of the file format so it's bad luck to me and i should then use a sep...

Unrecognized extra characters in file parsed with php

I've got a csv file I'm parsing with PHP. (Actually, it's tab-separated.) In a text editor, the file looks like this: Object Id Page/Master Id Page/Master Name ... Using this code: $f = file_get_contents($filepath); echo $f; I get this in the browser: ��O�b�j�e�c�t� �I�d� �P�a�g�e�/�M�a�s�t�e�r� �I�d� �P�a�g�e�/�M�a�s�t�e�r� �N�...

How to parse a file for iphone? Should I use NSScanner?

Hi, So I am new to iphone development, but am trying to learn how to take a file that is CSV and read it and save it using Core Data (I think that is the best way?) so that I can display it in a tableview on the iphone. Below is an example of the type of csv file I am working with; 13,1,1,History,,,,,,1 ,263,1,Smith,Bob,Freshman ,317,...

tricky CSV file output based on a List<Order> orders collection

I have to produce this CSV layout, but a little unsure how to do it. I have a Order class that I have to convert into a CSV file. public class Order { public int ID {get; set;} public int Created {get;set;} public List<Item> Items {get;set;} } public class Item { public string Sku {get;set;} public ...

to separate comma separated values of field and add them in integer field of temp table

I have one table member_details with field "preferred_location" (varchar) that has comma separated values like "19,20,22" that come from a listbox selection .... Now I also have another table city_master having field "city_id" (int) and "city_name" (varchar)... Now I want to separate "preferred_location" (varchar) values and to add the...

csv file upload

Hi, In my Grails app, I would like admin users to be able to upload a CSV file that contains data such as: List of users to be added to system List of groups to be added to system Assignment of users to groups I have no idea how the user will generate these CSV files - most likely from Excel, Access or similar, and therefore I've no...

preg_split commas not inside parenthesis

Test string: Organic whole wheat bread, Monterey Jack Cheese (milk, cheese culture, salt), Hormel Natural Ham (salt, turbinado sugar, lactic acid (not from milk) Desired output: Array ( [0] => Organic whole wheat bread [1] => Monterey Jack Cheese [2] => Hormel Natural Ham ) I don't mind if the sub-in...

Searching from comma separated value

This is one of those 'oh my god' moments. The previous programmer in our company has left behind a badly-coded application using PHP and MySQL. One example is that he has stored options for each customer as a comma separated value in MySQL. The entire application is NOT OOP based and so there are repeated references and queries in almo...

Problems assigning dict values to variables

I am struggling with something that must be one of those 'it is so obvious I am an idiot' problems. I have a csv file that I want to read in and use to create individual 'tables'. I have a variable (RID) that marks the beginning of a new 'table'. I can't get my indicator variable (currentRow) to advance as I finish manipulating each...

Write to a CSV file on two columns

Hello all, I am trying to create a CSV file. I have done this. I have put the below in a loop with the first and last lines outside of the loop. $FileHandle = fopen('tech.csv', 'a+') or die("can't open file"); $stringa = $item." , ".$item2."\r\n"; fwrite($FileHandle, $stringa); fclose($FileHandle); However, it comes out like this in ...

TSQL in SQL 2005: Query

I have 2 columns in my table, called TaskSet and SkillsSelected. The sample data as follow: TaskSet | SkillsSelected -------------------------------------------------- SK000001, SK000004, SK000002 | SK000001, SK000002, SK000003 SK000002 | SK000002, SK000003, SK000004 As you can see it's ...

how to conver query list into csv using django

how to convert query list into csv using django thaks before ...

How can I translate my XML file to a CSV file, even if it has repeated tags?

I have this XML file: <cjl> <job> <plan on="1">aa</plan> <exec>d.java</exec> </job> </cjl> The job tag may be repeating and also the plan tag also may be repeating. <cjl> <job> <plan on="2">aa</plan> <exec>e.java</exec> </job> <job> <exec>f.java</exec> <plan on="1">bb</plan> ...

"is not a valid name" error while retrieving data from csv/txt file using oledb

I retrieving data from a csv/txt file using oledb driver ConnString = "Provider=Microsoft.Jet.OleDb.4.0; Data Source = " & System.IO.Path.GetDirectoryName(strFileName) & "; Extended Properties = ""Text;HDR=YES;FMT=Delimited""" strQuery = "SELECT * FROM [" & System.IO.Path.GetFileName(strFileName) & "]" In the last line I am getting ...