Help using Base SAS procedures

UTF8 verification

Reply
Contributor
Posts: 28

UTF8 verification

** Re-posted

Does a function/procedure exist that can be used to validate a UTF8 string field for any non-compliant UTF8 characters?

Would something like this work:

if klength (in_field) ne klength ( kcvt( in_field, 'utf8', 'utf8')) then invalid_string =  in_field; /* assuming kcvt would strip and non compliant utf8 characters */

klength and kcvt taken from SAS(R) 9.2 National Language Support (NLS): Reference Guide

Ask a Question
Discussion stats
  • 0 replies
  • 191 views
  • 0 likes
  • 1 in conversation