I have a website in Classic ASP. I need to export some data from a database to CSV files.
Some of the data (from the database) is in numeric character reference (NCR). These characters all start with the characters "&#". These are actually Chinese characters represented in NCR (i.e. a number string spelling out the unicode character number). For example: 香辣猪
How do I decode these Chinese characters which are currently in NCR to their actual Chinese characters (maybe in unicode format), in the exported CSV file, so that when I open up this file in Excel or Google Sheets, these Chinese characters will show up properly (display the actual Chinese characters)?
For example 香辣猪 should be actually displayed as 香辣猪
In Excel, I can actually use the following to do the conversion:
=UNICHAR(39321)&UNICHAR(36771)&UNICHAR(29482)
But, I would like to pre-convert those NCR to unicode when exporting to CSV. Is there a way to do this? What is the equivalent of UNICHAR in Classic ASP?