infor.com
concierge
infor u
developer portal
documentation central
customer center
Posts
Categories
Groups
ERPs
CSD
FSM/HRT
LN
M3
Syteline/ CSI
Hubs
Developer
Healthcare
Hospitality
Public Sector
Onboarding
Release Center
CloudSuites
Aerospace & Defense (LN)
Automotive (LN)
Chemicals (M3)
Corporate (FSM/HRT)
Distribution (Sx.e/CSD)
Distribution Enterprise (M3)
Engineering & Construction (LN)
Fashion (M3)
Food & Beverage (M3)
Healthcare (FSM/HRT)
Industrial (Syteline/CSI)
Industrial Enterprise (LN)
Manufacturing (M3)
Public Sector (FSM/HRT)
Solutions
Supply Chain Management (SCM)
Human Capital Management (HCM)
Events
Groups
User Groups
Your Groups
About
Email Community Support
Infor News
Migrated Forums
Home
Clovertech
Clovertech Archive
Read Only Archives
Cloverleaf
Cloverleaf
checking a string to see if it contains special characters
System
Originally posted by Doug Lundin
We are checking OBX.5 and trying to get rid of any special characters such as hex c2 and hex 95. Tried this in the translation if statement and (ct) contains, but can't seem to get it to work. Any suggestions
Find more posts tagged with
Clovertech
Comments
System
Originally posted by Gary Atkinson
Check in a tcl proc before the translation.
Jim Kosloskey
Or -
If it is just OBX-5 that has the issue AND if they are not the character set defined in MSH-1 and MSH-2 you want to affect, you could use a xltp type Tcl proc inside the Xlate when COPYing the OBX-5 field.
Charlie Bursell
set inp [lindex $xlateInVals 0]
regsub -all -- {[^x20-x7e} $inp {} inp
set xlateOutVals
# Gets rid of all non-printing characters