Csv and text editor showing different values - csv

When I open the csv , it shows 0.103945 as value . But when i open it in text editor the value is shown as 0.10394500000000001 . Why this problem occurs when we open in csv and text editor?
Because of this issue I'm having problems. Is there any way to fix this issue and the csv is generated through java code.

Related

In atom text editor, I'm not able to use jinja, it is not taking or reading the variable name

here are the image of the code which i was working on .
this the output
this is the code which I was working on .

Ms Access - Can't remove line breaks from Word RTF report export

I have built a project management database using Access 2016 and I added the possibility to export reports in .rtf. The report is composed of several text boxes including the title, description and dates of the project.
Everything works fine but when the report opens in Word there are line breaks at every line which makes it super hard to copy/paste the description text to use it elsewhere.
I looked into a lot of different forums but never find a way to remove those line breaks. For now I only tried to change the format of the text boxes from Plain text to rich text but it didn't work.
All ideas are more than welcome as I'm running in circles for two weeks now...
This is a screenshot of my issue
You could write a small clean-up function that will search and remove the line breaks (RTF code: \par) in the generated RTF file.
Skip the first line breaks (Title, Subject)
Skip the \pard codes, if any (lead of your description)
Search and remove all subsequent \par
You wouldn't remove the line breaks, neither the tabs, nor the spaces, only the signs for these.
But that is a setting of your RTF viewer. Your export has no control over that.

html page failing to display rupee currency symbol

I have a database configuration table that holds the rupee symbol &#8377.
when my page loads a java class reads this value using jdbc from the sql server database and using xslt transformation displayed in a table.
there are no issues with the $ UK pound symbol etc, but rupee will not display. In the table I see that the value &#8377 is displayed and when I view the source I see that the text has been escaped to &#8377.
If I edit the source in chrome and change &#8377 back to &#8377 it displays fine, I'm trying to work out how to prevent this escaping from occurring.
I have tried to escape the & with \&#8377however this is still encoded to\&#8377.
I have also tried directly sticking the &#8377 into the xslt sheet in line with some text like:
<h2>Some text (&#8377)</h2>
but with this it displays as 'Some text (?)'
There must be a simple solution to this one but I've not found anything so far :(

Pasting formatted text from HTML into MS Access memo form field

I have a super simple MS Access form with two fields to collect some data quickly, one of which is a memo data type, wired into a table field. I want to copy some formatted text from HTML into it and would like to preserve the formatting (bolding, fonts, italic, etc.). However, when I do Ctrl-C --> Ctrl-V, it only pastes unformatted plain text.
Is there any way I can configure my form field to accept and save formatted text? If I paste the same into MS Word, the formatting IS preserved.
You will have to open the 'source' of the HTML file, and only then copy+paste.
From the browser, you'll just see the HTML output.. and some apps, like Notepad, won't be able to store the data through a simple copy+paste. MS Word can do it, as you might already know, since it is a rich-text editor.
As for a field in MS Access, you can only preserve the formatting if you copy the source itself. It will help if you let us know which browser you are copying from, though normally, there is an option to view the source code of the page being viewed.
[edit:in response to comment]
If you want rich text to enter into an ms access field, try the first few steps here: http://office.microsoft.com/en-001/access-help/insert-or-add-a-rich-text-field-HA010014097.aspx

How to encode a hyperlink in CSV formatted file?

When I try to encode a HTML anchor link in CSV file cell it becomes corrupted and not readable by Excel.
Is there some sort of non-HTML solution or format to encode a hyperlink in CSV file cell?
For when automagicalism doesn't work, and you're definitely using Excel, use this as the field content.
=HYPERLINK("http://stackoverflow.com")
This worked for me:
Use the =HYPERLINK function, the first parameter is the web link, the second is the cell value.
Put " quotes around the entire function.
Escape the internal quotes within the function with two sets of quotes, i.e., ""
Here's a four-column comma-delimited example.csv:
5,6,"=HYPERLINK(""http://www.yahoo.com"";""See Yahoo"")",8
When a spreadsheet program (LibreOffice, etc.) opens this .csv, it creates an active link for you.
What worked for me in Excel 2003 - output to your CSV the statement:
CELLVALUE="=HYPERLINK("+QM+URLCONTENTS+QM+";"+QM+"URLDISPLAYNAME"+QM+")"
note the semicolon ; use in the hyperlink. I've found the comma not to work for me in Excel 2003.
Depending on the script or language you use quotemarks could be handled differently. The cellvalue you put into the CSV before you import it into Excel should look exactly like this: "=HYPERLINK("URLCONTENTS";"URLDISPLAYNAME")"
where:
CELLVALUE is the output written to the CSV
QM is the ASCII value of ["] -> (ASCII 34)
URLCONTENTS is the full URL to the page you want to link to.
-URLDISPLAYNAME is the text you see in the Excel cell.
You can also use relative paths and set a base location in Excel.
File/Properties > Tab Summary > Field Hyperlink Base.
Use as fieldvalue something like http://www.SITENAME.com/SUB_LOCATION/../SUB_LOCATION that sets your starting point so you can click it in Excel. Of course, you don't have to use SUB_LOCATIONs if the sitename itself already will resolve successfully for your relative path.
What I couldn't find is how to make the links automatically underlined in Excel. From other tips found in this article:
Format manually all linkcells as underlined and darkblue (for example) and then the standard functionality appears with already visited links turning into another color.
A CSV file is simply text - it's up to the loading program how it chooses to interpret the text.
If Excel is complaining when you feed it "Link", "another cell" then try just having the raw URL and you might find Excel will automagically turn it into a link.
But in general Excel doesn't process HTML, so expecting it render HTML from a CSV file is asking too much.