CSV Digital Conversion Text

Source: Internet
Author: User

Recently encountered a bug problem, CSV value converted to text.

The data are as follows:

The results are as follows:

You see that the 0 in front of "01720" is not shown. How to show it, there is no problem with the CSV file format. Later find a solution is to add a tab \ t. But how to add?

In the CSV file directly add \ t certainly not. So I did a test with C #.

Run effect

Let's take a look at the contents of the generated CSV file

We see a little space in front of the comma, that is, the box is made of T-tab. The naked eye is easily seen as a space.

CSV Digital Conversion Text

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.