Vietnamese Standard Code for Information Interchange (VISCII)

The 1C:Enterprise developers forum

#1
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jul 19, 2016
Company:

Question: Is there a way to read text files in Vietnamese Standard Code for Information Interchange (VISCII) character set?
There is support for windows-1258 vietnamese codepage, but it seems like VISCII is different.

 
#2
People who like this:0Yes/0No
Timofey Bugaevsky
Guest

Joined:
Company:

Hello, Alexey!

Unfortunately, I don't see this encoding in the list of supported encodings for text reader and text document.

Could you please attach an example file and a screenshot how should look data in this file, so I could try to find a way to convert it?

 
#3
People who like this:0Yes/0No
Just came
Rating: 0
Joined: Sep 16, 2016
Company:

Hi Alexey,

If you need to read text files in VISCII format, you must installs VISCII fonts to your computer.
You can download attchment file "VISCII fonts 01.zip", and follow these steps:
1. unzip files.
2. coppy all font files to folder "c:\Windows\Fonts" in your computer.
3. When you open text files in VISCII format, you need choise font with prefix "VI". For example:  "VI Times".
All will be done!

 
#4
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jul 19, 2016
Company:

Quote
Could you please attach an example file and a screenshot how should look data in this file,
Unfortunately, this is private data, so I cannot share it. Anyway, thank you for the reply!

Quote
If you need to read text files in VISCII format, you must installs VISCII fonts to your computer.
Mr. Ha, thank you very much for your reply! However, fonts don't make possible to read data by 1C:Enterprise from files or from ODBC source. Anyway, thank you very much for your help!

 
#5
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Nov 3, 2011
Company: 1C Company

Alexey, it looks like you haven't solved the problem yet. If you still need help, can you make us a small example file without any private data? Just a couple of lines will do (and of course a screenshot that shows this text in the right encoding).

 
#6
People who like this:2Yes/0No
Just came
Rating: 0
Joined: Sep 16, 2016
Company:

Hi Alexey,

If you make all right as my recomment, then fonts will work with data from ODBC source or from reading files.
I show you my test result, i have connecting form MSSQL by ExternalDataSource.
Please see in attachment.

 
#7
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jul 19, 2016
Company:

Mr Ha thanks a lot! Now the text from odbc data source looks better, but still wrong, probably it is not VISCII character set at all:

 
#8
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jul 19, 2016
Company:

Quote
Just a couple of lines will do (and of course a screenshot that shows this text in the right encoding).

Now I am reading data not from txt file but from odbc source, so the text converter will not help. But probably I can do something with odbc driver or fonts (as Mr. Ha suggested)? Thanks!

Edited: Alexey Kostromin - Jun 26, 2017 10:06 AM
 
#9
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Nov 3, 2011
Company: 1C Company

Alexey, we're investigating this.

 
#10
People who like this:0Yes/0No
Active user
Rating: 7
Joined: Nov 3, 2011
Company: 1C Company

Alexey,

it might or might not be VISCII. Could you please provide the following info for further investigation?

- a sample database with a small text fragment that is displayed incorrectly ('Nguen Ba Tam' will do), the font that you use, and the configuration that displays the text

- Windows settings: the system locale and the language for non-Unicode programs

Thanks for your patience!

 
#11
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jul 19, 2016
Company:

Quote
- a sample database with a small text fragment that is displayed incorrectly ('Nguen Ba Tam' will do), the font that you use, and the configuration that displays the text

Test configuration and example database with vietnamese text are in attached file test.zip.

You can see the problem in the report VietTextTest.
used font in the report: VI Arial

Quote
- Windows settings: the system locale and the language for non-Unicode programs

The system locale: Vietnamese(Vietnam)
language for non-Unicode programs: It seems like in Win10 it is the same as locale option.

Download test.zip (100.14 KB)
 
#12
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jul 19, 2016
Company:

Some Vietnamese fonts in attachment.

Edited: Alexey Kostromin - Jul 18, 2017 02:38 AM
 
#13
People who like this:1Yes/0No
Just came
Rating: 0
Joined: Sep 16, 2016
Company:

Hi Alexey,

Now i know what is problem. FontText of VietText in your case is not VISCII, it's VNTime font.
Please use the fonts i have attach for you. You need use .VnTime font. Please see following detail.

 
#14
People who like this:0Yes/0No
Active user
Rating: 2
Joined: Jul 19, 2016
Company:

Mr. Ha, thank you very much for your help! The problem is solved. With VnArial font the text looks right.

Edited: Alexey Kostromin - Jul 19, 2017 07:42 PM
 
Subscribe
Users browsing this topic (guests: 1, registered: 0, hidden: 0)
Be the first to know tips & tricks on business application development!

A confirmation e-mail has been sent to the e-mail address you provided .

Click the link in the e-mail to confirm and activate the subscription.