Why can't I save a file as a csv? - csv

So I downloaded this file off the web and its in CSV format but saved as a txt. It has every thing separated by commas and everything but I am having trouble making it a CSV file. When I go to "save as", to try to save it as a CSV, I don't see the option to save it as a CSV.

It's difficult to answer not knowing what software you are using.
Try to open the file using Microsoft Excel and then save it as CSV.
If Excel won't open it, then copy-paste the data from the text file to a new Excel workbook in top left cell then use the function "Text to Columns" located in the "Data" tab.
The wizard will then help you convert your data from any CSV format which you will then be able to save as CSV file.

Open the CSV file in Notepad. Save as AllFiles, and filename.csv. Now this *.txt file will exist alongside a new file filename.csv in the same directory. Now you can open this csv file in excel. (make sure you choose all files here also otherwise the csv file won't be visible)

Related

Create a CSV table from a JSON file with a BOM marker in a Logic App

I'm trying to create a CSV table which has emoji's in it and send it as an attachment via logic app. So far, my app creates the JSON with the emoji's in it fine, and it looks as though the input going into the Create CSV Table action is also fine. But when I download the CSV created from my email, the emoji's are in gibberish and I realise that is because the CSV has been created without a BOM marker.
Any ideas how I can fix this? I've already tried the below solution but I don't think it works because of the conversion from CSV into bytes required to attach a file to an email.
https://techcommunity.microsoft.com/t5/integrations-on-azure-blog/create-csv-files-with-bom-marker-in-logic-app/ba-p/2919113
One of the workaround is to transform the downloaded csv file. In order to print the emojis to the csv file follow the below steps
Open Microsoft Excel.
Navigate to Data >> Get External Data >> From Text.
Add the location of the CSV file, that you want to import and click Transform Data. make sure you choose the file Origin to 65001: Unicode (UTF-8) and Delimiter to comma.
Then the file will open in a Power Query Editor.
Navigate to Home >> Close and Load.
Now you can see the pictures getting inserted to your file.
Before:-
After:-

how to upload hindi data using csv file in mysql

CSV file data
database structure
mysql error
data stored
I tried multiple times uploading the data in MySQL database. but still getting the same error and I found multiple solutions for this but I am still getting this issue
invalid column count in CSV input on line 2.
How can I upload CSV file in MySQL database?
Plz help me.
save the .xlsx or xls to CSV (comma delimited) (*.csv) and save .xlsx to Unicode Text (.txt)
Then open .txt file in Notepad
Select and copy the space, replace it with comma
Save the .txt file, by replacing the CSV file in UTF-8 format.
then try to upload this UTF-8 .csv in database table.
It worked for me, hope so it will work for you too.

Saving .sql queries as .sql text file

Beginner's question: I am learning SQL and the book says 'SQL queries can be created as an SQL script which can be saved as a plain text file with a .sql file extension.' presumably this is done in Notepad but how do I save it as a .sql script please?
To save a file as sql file in notepad - save the file as "yourFile.sql" as in the below picture.
Make sure to select "All Types ." instead of "Normal text file (*.txt)"! Else it will be saved as script.sql.txt.

CSV File showing random characteristics

I copied a file from my ipad using iFunBox and I tried opened it with:
Microsoft Excel
FreeFileViewer
Notepad
Notepad++
All of them shown nothing File (.csv) Everytime open it using those 4 programmes this is what I get:
] 1 ˆ&ÓMF.¶•J¡ ñßR)åÙ¥e
ò¦Øœsl\V{`¸u°N±vI¦½™êk4“‡-m Ùò¾ˆÚär'²ø¢å:š nàÊ#‹8yH#uä³éc‹übuÙÀÙHIˆ[g¿^¶$9¹asï³`‰;*ý:Ôê]ÓlÆFJŠzÆy l[
†nÒdzÙ› ™uê^ï:—ŽœÏ·`ð€‡°XR…Hù™6è³ß×+¥Û/‹ÐÉÞ‡çååw¿öùr~uóçˆKÝcýœó©û$R0áÓ)`´Á°ŠOŸ¸hÉw”ÕÌ$¾S|åÚ†G¾Ùú¿#/¯J(Ádž‡Úøo䇙ñyŠÃ©A°6ÀÊ¿©þFDBº·SáóDEa±€o¹Nê¦ä~iÿñÍQ‹òÊun¢ç,Æâðe IéŒ
The file seems to be binary and not CSV. CSV is a plain text file which depending on the text encoding may show some strange characters, but mainly plainly readable. The file above is a kind of OMF file, whatever that is.

Trouble opening .csv files on my Mac

I am trying to open a .csv file in my Mac, using Excel 2008. Currently, every time I try opening the file, my Mac defaults to OpenOffice.org 3. I never had this problem. I always used to be able to open csv files with Excel.
Where do I go to change the default spreadsheet program for opening csv files back to Excel?
Thank you.
CTRL+Click or Right Click on the CSV file, click on "get info" option. In the popup at the bottom under "opens with", select the application you want to associate with this file e.g. excel.
This works for changing the file associations for most files.