Tags:
tag this topic
create new tag
view all tags
---+ .TEXT TO UNICODE This subroutine transcodes a RAW alpha field to a Unicode field. Added in 6.0.0 <br />%TOC% ---++ Usage <pre> PASS <unicode_field> FIELD SHARE? Y PASS <source_text> FIELD SHARE? N PASS <encoding> FIELD SHARE? N PASS <error_text> FIELD SHARE? Y GOSUB --- .TEXT TO UNICODE * Check for errors IF --- .TEXT TO UNICODE NE </pre> ---++ Description This subroutine will transcode a RAW alpha field to a Unicode field. The first 2 parameters are required. If any required parameters are missing, the subroutine will CANCEL. <unicode_field> is the Unicode field to receive the transcoded text (Required). This must be PASSed with Share "Y" to return the value. <source_text> is the field containing the string to be transcoded (Required). <encoding> identifies the encoding of the <source_text>. If not specified or a blank is PASSed, it will check the environment variable APPX_RAW_ENCODING and use that encoding. If that is not present, it will default to ISO-8859-15. <error text> if an error occured this field contains additional error text from the Unicode library (Optional). This must be PASSed with Share "Y" to return the value. <span style="background-color: transparent;">Notes:</span> * Normally this routine is not required as a simple SET from a RAW alpha to a Unicode field will automatically transcode it (using the APPX_RAW_ENCODING or the default ISO-8859-15 if not specified). If your source data is not in that encoding, then this routine can be used to transcode from the correct encoding. * This subroutine is designed to operate on Alpha, Text, and Token fields only. The returned results are undefined if you specify any other type of field. Comments <br />%COMMENT% -- %USERSIG{JeanNeron - 2017-11-02}%
E
dit
|
A
ttach
|
Watch
|
P
rint version
|
H
istory
: r2
<
r1
|
B
acklinks
|
V
iew topic
|
Ra
w
edit
|
M
ore topic actions
Topic revision: r2 - 2023-04-10
-
BrianRyan
Home
Site map
Main web
MedicaidBilling web
Sandbox web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
Account
Log In
E
dit
A
ttach
Copyright © 2008-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback