除了一个监听器将输入字符串转换成大写字母之外,监听器的代码完全相同。
With the exception that one of the listeners converts the input string to uppercase, the code for the listeners is exactly the same.
以上大多数信息指定了字符代码集转换,这样客户机和服务器就能够互相理解。
Much of the information above specifies character code set conversions so that the client and server can understand one another.
理想情况下,您应通过在转换的源和目标之间使用相同的代码页,尽力避免字符转换以提高性能。
Ideally, you should try to avoid character conversions to improve performance by using the same code pages between the source and the target of the conversion.
对于非ascii字符,用户应该确保具有相同活动代码页的绑定和执行使用相同的转换表。
For non-ASCII characters, users should ensure that the same conversion tables are used by binding and executing with the same active code page.
在这类情况下,您需要深入研究如何使用Samba服务器上的特定代码页转换字符代码。
In such instances, you need to delve a bit deeper into how character codes are converted using specific code pages on the Samba server.
通过前面的讨论,应该已经清楚“代码页”的概念对于理解字符转换至关重要。
From the previous discussion, it should be clear that the concept of "code page" is crucial to understanding character conversions. A code page can be defined at different levels.
例外情况,一个监听器将输入字符串转换成大写字母,而另一个将其转换成小写字母,这对于监听器所编写的代码都是完全相同的。
With the exception that one of the listeners converts the input string to uppercase, while the second converts the string to lowercase, the code for the listeners is exactly the same.
当您碰到字符转换方面的问题时,首先要识别应用程序和所涉及的DB 2UDB数据库服务器使用哪些代码页。
When you encounter problems with character conversions, first identify which code pages are being used by the application and the DB2 UDB database server involved.
除了映射数字和字节字段,在为您的本地语言应用程序选择了正确的代码页时,它还将字符串数据转换成适当的代码页。
In addition to mapping numeric and byte fields, it also converts string data to the appropriate codepage when the correct codepage for your native language application is selected.
验证您可以输入重音字符,以及它们在从永久性存储器重新读取时没有被代码页转换破坏(或缺乏该转换)。
Verify that you can enter accented characters, and that they are not corrupted by codepage transformations (or lack thereof) when reread from permanent storage.
每当从DB 2客户机发生任何请求到DB 2服务器,所有字符数据(例如查询或CHAR主机变量)都要从客户机代码页转换为数据库代码页。
Whenever any request is sent from a DB2 client to the DB2 server, all character data (such as queries or char host variables) is converted from the client code page to the database code page.
在绑定时,将基于在绑定期间有效的代码页转换这些嵌入的字符串。
These embedded strings are converted at bind time based on the code page which is in effect during the bind phase.
如果结果数据是一个字符串,那么中间结果也要转换回输入代码页。
In cases where the result data is a string, the intermediate result is also converted back to the input code page.
以下XSL代码将字符串中的名称空间前缀转换为对应的名称空间URI。
The following XSL code translates the namespace prefix in a string to the corresponding namespace URI.
这几行代码会将所有特殊字符转换为正确编码的HTTP请求内容。
These lines take care of the conversion of all the special characters into proper encoding as an HTTP request.
整个insert语句被从客户机代码页转换到数据库代码页,然后XMLPARSE文档字符串被转换到utf - 8,以便解析为XML。
The whole INSERT statement is converted from the client code page to the database code page, and then the XMLPARSE document string is converted to UTF-8 for parsing into XML.
要避免代码页转换的问题,建议使用字符forBITDATA或blob代替字符类型。
To avoid code page conversion issues, the recommended approach is to use character FOR BIT DATA or BLOB instead of character types.
调用filter将作为第二个参数传递的字符串转换成一段代码,然后将该代码应用到作为第一个参数传递的列表的每个元素。
The call to filter converts the string that is passed as its second argument to a piece of code, which it then applies to each element of the list that is passed as its first argument.
CODEUNITS16和CODEUNIST32作为字符串单元可能导致代码页转换。
The CODEUNITS16 and CODEUNIST32 as string units may cause code page conversions.
对于您的代码,需要从模型中获取一个textile格式的字符串,并在将它赋给card _ panetext属性之前将它转换成HTML。
For your code, we want to take a Textile-formatted string from the model and convert it to HTML before assigning it to the card_pane text property.
为了将lob列进行反序列发转换,并且为了再次获得该文本字符串,请使用以下代码。
To deserialize the LOB column and get to the text string again, use the following code.
清单22对最初由SamRuby提供的代码进行了修改,包含Atom文本结构或内容元素的JSON序列化,并将其转换为一个字符串。
Listing 22 is a modified version of code originally provided by Sam Ruby that takes the JSON serialization of an Atom text construct or content element and converts it back into a string.
这一行代码也会专门处理null值,它将null值转换为一个空字符串以避免后面的处理出现问题。
This line also traps for a null value and converts it to an empty string to prevent problems during later processing.
现在我们只需要一个程序将这个宏转换成标准的C 语言就可以了。对于这个简单的例子来说,我们将使用Perl 来实现这个程序,因为它可以对字符串中的用户代码进行评测,其语法也与 C 语言非常类似。
Now we just need a program to convert our macro into standard C. For this simple example, Perl is used because it can evaluate user code in a string, and its syntax is largely C-like.
EAz示例代码可用来显示数据库字符串格式和EAzenum格式之间如何相互转换。
EAz sample code is available showing how to translate database strings to and from EAz enum format.
更普适的情况下,等号右边以是任意一种序列(字符串、列表或者元组)。比如,要把一个电子邮件地址转换成一个用户名和一个域名,可以用如下代码实现。
More generally, the right side can be any kind of sequence (string, list or tuple). For example, to split an email address into a user name and a domain, you could write.
更普适的情况下,等号右边以是任意一种序列(字符串、列表或者元组)。比如,要把一个电子邮件地址转换成一个用户名和一个域名,可以用如下代码实现。
More generally, the right side can be any kind of sequence (string, list or tuple). For example, to split an email address into a user name and a domain, you could write.
应用推荐