您将学习如何显示文本、执行排序、计算单词和行数、转换字符,以及其他任务。
You will learn how to display text, sort it, count words and lines, and translate characters, among other tasks.
在这类情况下,您需要深入研究如何使用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.
并编写一个简单使用动态sql的SQL用户定义函数(UDF),转换字符串中传入的公式并计算值。
And writing a simple SQL User Defined Function (UDF) that USES dynamic SQL to convert the formula passed in the string and calculate the value.
translate (out,in [,pad])用输入输出表转换字符串12345 .translate (“qwertyuiop ”,“ 1234567890 ”)返回“qwerty ”。
String.translate (out, in [, pad]) Translates the string using the in and out tables 12345.translate (" qwertyuiop ", "1234567890") returns "qwerty".
除了一个监听器将输入字符串转换成大写字母之外,监听器的代码完全相同。
With the exception that one of the listeners converts the input string to uppercase, the code for the listeners is exactly the same.
字符串函数用于将一个字符串转换为整型数字。
The parseInt function parses a string and returns an integer.
本文通过描述DB2UDB字符转换过程,解决了所有这些以及类似的问题。
This article addresses all of these and similar issues by describing the DB2 UDB character conversion process.
如果转换导致了字符替代,就会根据数据源行为和包装器实现生成一条警告消息。
If conversion results in character substitution, a warning might be generated depending on the data source behavior and wrapper implementation.
如果DSNTIPF面板字段中的CCSID值不正确,字符转换也将产生不正确的结果。
If the CCSID values of the DSNTIPF panel fields are not correct, character conversion produces incorrect results.
为了理解字符转换过程如何工作,您需要理解一些关键概念。
In order to understand how the character conversion process works, you need to understand some key concepts.
理想情况下,您应通过在转换的源和目标之间使用相同的代码页,尽力避免字符转换以提高性能。
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.
本小节将通过两个通用场景描述字符转换过程。
This section describes the character conversion process using two generic scenarios.
接着,提供了通用场景以展示字符转换的过程。
Next it provided generic scenarios to show the character conversion process.
在任何其他代码页中,替换字符总是被转换为另一个替换字符。
A substitution character is always converted into another substitution character in any other code page.
在使用该方法时,DB 2UDB将正确地执行字符转换。
When you use this method, DB2 UDB will perform the character conversion correctly.
地址打印在开头,字符转换打印在结尾。
The address is printed at the beginning, and the character conversion is printed at the end.
比如,电话号码中的空格将被转换成字符%20,从而能够在URL中传递这些字符。
For example, any Spaces in the phone number are converted to % 20 characters, making it possible to pass the characters along in the URL.
字符转换的关键概念——EBCDIC编码模式。
Character conversion key concepts — The EBCDIC encoding scheme.
字符转换的关键概念——ASCII编码模式。
Character conversion key concepts — The ASCII encoding scheme.
字符转换的关键概念——unicode编码模式。
Character conversion key concepts — The Unicode encoding scheme.
文本文件的HTML转换中的字符显示不正确。
Characters do not appear correctly in HTML conversion of a text file.
关注平台的特定通讯特征,如换行和缓冲以及Unicode字符转换。
Pay close attention to platform specific communications characteristics such as line feeds and buffering and the conversion of Unicode characters.
lower方法将string中的所有字符转换为小写。
The lower method converts all the characters in the calling string to lowercase.
下列例子说明了字符转换的过程。
The following example illustrates the character conversion process. Let's say you have the following configuration.
处理文本需要某种约定将字符转换为计算机实际可以处理的数字;这些约定叫做字符编码。
Handling text requires that there be some convention for converting characters into the Numbers computers actually handle; these conventions are called character encodings.
正如我在“字符集”(请参阅参考资料)这篇文章中所解释的,由于文件有内容,必须告诉系统如何将字节转换成字符。
As I explained in "character sets" (see Resources), because the file has content, you must tell the system how to convert the bytes to characters.
您可以看到,该方法将字符串转换为大写字母。
As you can see that method converted the string to uppercase.
转换将字符串转换为对象,而大多数标准验证是对字符串进行的。
Conversion converts strings into objects, whereas most of the standard validators work on strings.
因此,必须将保存的数据转换为字符串。
通过标准路径将文件转换成字符串才会导致异常。
The exception is caused by converting files into strings via canonical paths.
应用推荐