R6 Chinese parameter garbled Solution

Source: Internet
Author: User
1) The Chinese characters received by query_string_decoded in R6 are garbled characters, rather than the Chinese characters decoded under R5.
It became a mess.
Code I wonder if it's a R6 bug? Fortunately, the @ urldecode formula is added to R6. The solution to query_stringdecoded is as follows:
1) Use QUERY_STRING to receive parameters. Chinese characters are encoded.
Use @ urldecode ("Domino"; QUERY_STRING) in another domain to obtain the correct Chinese parameter after decoding.
2) To ensure synchronization with query_stringdecoded In R5, that is, to ensure compatibility with the old Program , You can use the formula
@ Setfield ("query_string_decoded"; @ urldecode ("Domino"; QUERY_STRING) reset
Query_stringdecoded so that you do not need to modify the proxy in the old program.

(2) Chinese text is displayed as garbled characters on the webpage. In particular, if the JS file of the external link contains Chinese characters, an error is reported as "the string is not over". The solution to this problem is as follows:
Open the Administrator and go to the preparation tab.-> Domino web engine: Configure as follows:

language
default string resource language: Chinese (simplified)
additional string resource ages:
character set
Use UTF-8 for output: NO
Use UTF-8 for HTML forms: NO

default Character Set Group: Simplified Chinese
Western: ISO-8859-1
Central European: windows-1250
Japan: sjis
traditional Chinese: big5
Simplified Chinese: gb2312
Korean: ksc5601 (EUC)
Cyrillic: KOI8-R
Greek: Windows-1253
Turkish: Windows-1254
Thai: TIS-620
Baltic: windows-1257
Arabic: Windows-1256
Hebrew: ISO-8859-8i
Vietnamese: Windows-1258
Indic: UTF-8
use auto-detection if database has no language information: No
character set in header: enabled
meta. character Set: enabled

3) The solution to getdocumentbykey () using Chinese parameters is not possible.

In R6, we can find that documents are not obtained when the getdocumentbykey () method is used in Chinese.
The solution is as follows:

OpenDatabaseAttribute to select the database language as the Simplified Chinese
At this time, we can see that the domino console will use ZH-CN to recreate all views and then run getdocumentbykey.

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.