<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to insert chinese charaters in Rdb database via DCL in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/how-to-insert-chinese-charaters-in-rdb-database-via-dcl/m-p/4701132#M41085</link>
    <description>Dear Toine,&lt;BR /&gt;&lt;BR /&gt;To complement my previous answer you ought to be able to define your table column as:&lt;BR /&gt;NAME CHARACTER VARYING (&lt;NUMBER&gt;)&lt;BR /&gt;     CHARACTER SET IS UTF8,&lt;BR /&gt;&lt;BR /&gt;Provided sql$ handles locales, you might set the locale as one of the Chinese UTF8 VMS locale with the $ define LANG &lt;LOCALE&gt; and then&lt;BR /&gt;$ run sql$&lt;BR /&gt;SQL&amp;gt; Insert into table1 values ('æ §å ¶');&lt;BR /&gt;&lt;BR /&gt;Of course and if cutting and pasting information, your terminal must be UTF8 capable. For more information about terminals, read my reply to Boris at &lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1465316" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1465316&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Yours sincerely,&lt;BR /&gt;Philippe&lt;BR /&gt;&lt;/LOCALE&gt;&lt;/NUMBER&gt;</description>
    <pubDate>Tue, 15 Feb 2011 03:15:38 GMT</pubDate>
    <dc:creator>Ph Vouters</dc:creator>
    <dc:date>2011-02-15T03:15:38Z</dc:date>
    <item>
      <title>How to insert chinese charaters in Rdb database via DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-insert-chinese-charaters-in-rdb-database-via-dcl/m-p/4701130#M41083</link>
      <description>Hello,&lt;BR /&gt;&lt;BR /&gt;Is it possible to insert chinese charaters into to an Rdb table via a sql script which is started via DCL.&lt;BR /&gt;&lt;BR /&gt;Example:&lt;BR /&gt;&lt;BR /&gt;sql&amp;gt; show table1;&lt;BR /&gt;&lt;BR /&gt;Information for table TABLE1&lt;BR /&gt;&lt;BR /&gt;Columns for table TABLE1:&lt;BR /&gt;Column Name                     Data Type        Domain&lt;BR /&gt;-----------                     ---------        ------&lt;BR /&gt;UTFCOL                          CHAR(300)&lt;BR /&gt;         UTF8 100 Characters,  300 Octets&lt;BR /&gt;&lt;BR /&gt;sql&amp;gt; Insert into table1 values ('控制');&lt;BR /&gt;&lt;BR /&gt;How can I do this?&lt;BR /&gt;&lt;BR /&gt;Or should I use something like this:&lt;BR /&gt;&lt;BR /&gt;sql&amp;gt; insert into table1 values(translate(hex42424 using rdb$utf8);&lt;BR /&gt;&lt;BR /&gt;All examples are welcome.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;/Toine</description>
      <pubDate>Mon, 18 Oct 2010 20:05:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-insert-chinese-charaters-in-rdb-database-via-dcl/m-p/4701130#M41083</guid>
      <dc:creator>Toine_1</dc:creator>
      <dc:date>2010-10-18T20:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert chinese charaters in Rdb database via DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-insert-chinese-charaters-in-rdb-database-via-dcl/m-p/4701131#M41084</link>
      <description>This kind of aspect within RDB/SQL is addressed by such a document I&lt;BR /&gt;found on the Web specifically dealing with RDB/VMS and written at&lt;BR /&gt;DEC's times. Here is its URL&lt;BR /&gt;&lt;A href="http://www.hpl.hp.com/hpjournal/dtj/vol5num3/vol5num3art7.pdf" target="_blank"&gt;http://www.hpl.hp.com/hpjournal/dtj/vol5num3/vol5num3art7.pdf&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;The Oracle RDB/VMS Release Notes 7.1.4.1 mentions a problem with&lt;BR /&gt;GB18030 or UTF8 character sets which has been corrected. This is&lt;BR /&gt;described in the document at&lt;BR /&gt;&lt;A href="http://download.oracle.com/otn_hosted_doc/rdb/pdf/rdbrn_7141.pdf" target="_blank"&gt;http://download.oracle.com/otn_hosted_doc/rdb/pdf/rdbrn_7141.pdf&lt;/A&gt; in&lt;BR /&gt;section 2.2.12.&lt;BR /&gt;&lt;BR /&gt;However all these technics uses a 7 bit ASCII terminal. So with all&lt;BR /&gt;the information read in mind, I assume one of the correct RDB syntax&lt;BR /&gt;is for your example:&lt;BR /&gt;SQL&amp;gt; insert into table1 values (_UFT8 X'42424')&lt;BR /&gt;</description>
      <pubDate>Tue, 15 Feb 2011 01:36:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-insert-chinese-charaters-in-rdb-database-via-dcl/m-p/4701131#M41084</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2011-02-15T01:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert chinese charaters in Rdb database via DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-insert-chinese-charaters-in-rdb-database-via-dcl/m-p/4701132#M41085</link>
      <description>Dear Toine,&lt;BR /&gt;&lt;BR /&gt;To complement my previous answer you ought to be able to define your table column as:&lt;BR /&gt;NAME CHARACTER VARYING (&lt;NUMBER&gt;)&lt;BR /&gt;     CHARACTER SET IS UTF8,&lt;BR /&gt;&lt;BR /&gt;Provided sql$ handles locales, you might set the locale as one of the Chinese UTF8 VMS locale with the $ define LANG &lt;LOCALE&gt; and then&lt;BR /&gt;$ run sql$&lt;BR /&gt;SQL&amp;gt; Insert into table1 values ('æ §å ¶');&lt;BR /&gt;&lt;BR /&gt;Of course and if cutting and pasting information, your terminal must be UTF8 capable. For more information about terminals, read my reply to Boris at &lt;A href="http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1465316" target="_blank"&gt;http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1465316&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Yours sincerely,&lt;BR /&gt;Philippe&lt;BR /&gt;&lt;/LOCALE&gt;&lt;/NUMBER&gt;</description>
      <pubDate>Tue, 15 Feb 2011 03:15:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-insert-chinese-charaters-in-rdb-database-via-dcl/m-p/4701132#M41085</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2011-02-15T03:15:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert chinese charaters in Rdb database via DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-insert-chinese-charaters-in-rdb-database-via-dcl/m-p/4701133#M41086</link>
      <description>Toine,&lt;BR /&gt;&lt;BR /&gt;To correct my previous reply and if I refer to the first document, the correct SQL syntax would be using an UTF8 capable terminal:&lt;BR /&gt;SQL&amp;gt; Insert into table1 values (_UTF8'&lt;THE two="" chinese="" characters=""&gt;')&lt;BR /&gt;&lt;BR /&gt;Of course the column must be declared as CHARACTER SET IS UTF8&lt;BR /&gt;&lt;BR /&gt;Deeply sorry for the confusion.&lt;BR /&gt;Philippe&lt;/THE&gt;</description>
      <pubDate>Tue, 15 Feb 2011 03:52:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-insert-chinese-charaters-in-rdb-database-via-dcl/m-p/4701133#M41086</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2011-02-15T03:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert chinese charaters in Rdb database via DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-insert-chinese-charaters-in-rdb-database-via-dcl/m-p/4701134#M41087</link>
      <description>&lt;!--!*#--&gt;Toine,&lt;BR /&gt;&lt;BR /&gt;sql$ is only sys$language logical sensitive. You may define it in your process logical name table. sql$ starts up correctly with ENGLISH, SWEDISH and HANZI. However you must own the appropriate keyboard to enter Swedish or Chinese characters into sql$.&lt;BR /&gt;&lt;BR /&gt;I checked this below with sys$language set to English:&lt;BR /&gt;$ sql$&lt;BR /&gt;SQL&amp;gt; create database filename sys$login:test.rdb;&lt;BR /&gt;SQL&amp;gt; create table employees ( name char(300) character set utf8);&lt;BR /&gt;SQL&amp;gt; insert into employees values('philippe');&lt;BR /&gt;%SQL-F-INCCSASS, Incompatible character set assignment between NAME and &lt;VALUE expression=""&gt;&lt;BR /&gt;SQL&amp;gt; insert into employees value(_UTF8'philippe');&lt;BR /&gt;1 row inserted&lt;BR /&gt;SQL&amp;gt; insert into employees values (_UTF8 X'42424');&lt;BR /&gt;%SQL-F-HEXSTREVE, A hexadecimal string must have an even number of digits&lt;BR /&gt;SQL&amp;gt; insert into employees values (_UTF8 X'042424');&lt;BR /&gt;1 row inserted&lt;BR /&gt;SQL&amp;gt; select * from employees                         &lt;BR /&gt;cont&amp;gt; ;&lt;BR /&gt; &lt;BR /&gt;   NAME                                                                         &lt;BR /&gt; philippe                                                                       &lt;BR /&gt; &amp;gt;&amp;gt;                                                                             &lt;BR /&gt; &amp;gt;&amp;gt;                                                                             &lt;BR /&gt; &amp;gt;&amp;gt;                                                                   &lt;BR /&gt; $$                                                                            &lt;BR /&gt; &amp;gt;&amp;gt;                                                                             &lt;BR /&gt; &amp;gt;&amp;gt;                                                                             &lt;BR /&gt; &amp;gt;&amp;gt;                                                                   &lt;BR /&gt;2 rows selected&lt;BR /&gt;SQL&amp;gt; quit&lt;BR /&gt;&lt;BR /&gt;&lt;/VALUE&gt;</description>
      <pubDate>Tue, 15 Feb 2011 07:27:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-insert-chinese-charaters-in-rdb-database-via-dcl/m-p/4701134#M41087</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2011-02-15T07:27:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to insert chinese charaters in Rdb database via DCL</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/how-to-insert-chinese-charaters-in-rdb-database-via-dcl/m-p/4701135#M41088</link>
      <description>Everything is summarized at &lt;A href="http://vouters.dyndns.org/tima/OpenVMS-RDB-SQL-Internationalizing_an_RDB_database.html" target="_blank"&gt;http://vouters.dyndns.org/tima/OpenVMS-RDB-SQL-Internationalizing_an_RDB_database.html&lt;/A&gt;</description>
      <pubDate>Wed, 16 Feb 2011 00:36:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/how-to-insert-chinese-charaters-in-rdb-database-via-dcl/m-p/4701135#M41088</guid>
      <dc:creator>Ph Vouters</dc:creator>
      <dc:date>2011-02-16T00:36:01Z</dc:date>
    </item>
  </channel>
</rss>

