BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
rudfaden
Lapis Lazuli | Level 10

I have a sas stored procedure where the encoding ends up as western-1252. I would like the encoding to be utf-8. As far as I can STP's as setup to use utf-8. 

 

Any idea of how to for

1 ACCEPTED SOLUTION

Accepted Solutions
rudfaden
Lapis Lazuli | Level 10

The solution was to use nvarchar/nchar instead og varchar/char

View solution in original post

5 REPLIES 5
gwootton
SAS Super FREQ
Here is the documentation for creating a new application server context and setting it up to use unicode.

Create Unicode Application Server Context
https://go.documentation.sas.com/doc/en/bicdc/9.4/biasag/n10001intelplatform00srvradm.htm#p0x4ziblwb...
--
Greg Wootton | Principal Systems Technical Support Engineer
rudfaden
Lapis Lazuli | Level 10

I already have a unicode server context. My problem is that the output from the sql server is not unicode. 

AhmedAl_Attar
Ammonite | Level 13

First and foremost, you'll need to ensure you are running SAS with the correct encoding, then have a look at this SAS 9.4 link Multilingual Computing with SAS® 9.4, it has a section on SAS/ACCESS products and how to ensure proper encoding is preserved/used when extracting data from RDBMS

 

*If you are not using SAS 9.4, you'll need to search the equivalent document for your SAS release.

 

Sajid01
Meteorite | Level 14

oks like your stored procedure is getting data from sql server and the encoding of the data is different.
In addition to what @AhmedAl_Attar  has said, have a look at the following from sas documentation

https://documentation.sas.com/doc/en/vdmmlcdc/8.1/nlsref/n0kzmrsdx5evkxn1ihs24h8ljg2b.htm 

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/movefile/n06qan4j3ffr6fn11bs4q11r8r56.htm#:~:...

This should help you.

rudfaden
Lapis Lazuli | Level 10

The solution was to use nvarchar/nchar instead og varchar/char

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 5 replies
  • 1033 views
  • 1 like
  • 4 in conversation