101
Views
9
Comments
Solved
Can not insert japan characters into external database (SQL Server)

When I conect SQL server to outsystems,but when i create data to table in SQL server ,it's only show ????,I try to with data type is nvachar and set value to insert to "N'" + japan characters ,it is not work 



Error.png
os.png
UserImage.jpg
CHUNG TRANDINH
Solution

Hi Toan,

In Service Center > Administration > Database Connections > Check to "Enable Unicode Support"

Click to Save and Apply Setting to the Factory, refresh your entity in extension and enjoy it.

UserImage.jpg
Hoang Ngoc Toan

it's work ,thank you

UserImage.jpg
Vijay Raj

Hello Chung

I've done this and also the data type is Nvarchar2 only..
But still the japan characters in the DB are replaced with question marks and other special characters.

Kindly help me in solving this.


Regards,

Vijay 

UserImage.jpg
CHUNG TRANDINH

Hi Vijay,

For attribute with text data type and Japanese characters, when you insert new data into the table, add N before its value as in the example below.

INSERT INTO [dbo].[Status] ([Label],[Is_Active])

VALUES

(N'未対応','True'),

(N'承認済','True')

Hope it's useful to you.

Chung

UserImage.jpg
Vijay Raj

Hello chung
Thank you for your response.


I've did this but still I'm not getting the expected result.

Am I missing something on DB language settings?

Any clues from the beginning of integration process would be helpful.

Regards,

Vijay


UserImage.jpg
_Asif


Did you get the solution , Even i am facing same issue with Arabic text
i have enabled the unicode and apply factory setting 
and try to save arabic in "N'"+"مرحبا بالعالم" but still the result is N'??????

UserImage.jpg
Rutso LuoHsu

Thanks, your solutions worked wonderfully, once the setting is in place you don't even need to use N prefix since all strings are UTF-8 by default. Prefixing N makes the characters UTF-16

UserImage.jpg
Trình Trần Văn

Hi
In the DB settings, you can change the collation to the appropriate language format.
Hope it's useful to you. 

UserImage.jpg
CHUNG TRANDINH
Solution

Hi Toan,

In Service Center > Administration > Database Connections > Check to "Enable Unicode Support"

Click to Save and Apply Setting to the Factory, refresh your entity in extension and enjoy it.

UserImage.jpg
Hoang Ngoc Toan

it's work ,thank you

UserImage.jpg
Vijay Raj

Hello Chung

I've done this and also the data type is Nvarchar2 only..
But still the japan characters in the DB are replaced with question marks and other special characters.

Kindly help me in solving this.


Regards,

Vijay 

UserImage.jpg
CHUNG TRANDINH

Hi Vijay,

For attribute with text data type and Japanese characters, when you insert new data into the table, add N before its value as in the example below.

INSERT INTO [dbo].[Status] ([Label],[Is_Active])

VALUES

(N'未対応','True'),

(N'承認済','True')

Hope it's useful to you.

Chung

UserImage.jpg
Vijay Raj

Hello chung
Thank you for your response.


I've did this but still I'm not getting the expected result.

Am I missing something on DB language settings?

Any clues from the beginning of integration process would be helpful.

Regards,

Vijay


UserImage.jpg
_Asif


Did you get the solution , Even i am facing same issue with Arabic text
i have enabled the unicode and apply factory setting 
and try to save arabic in "N'"+"مرحبا بالعالم" but still the result is N'??????

UserImage.jpg
Rutso LuoHsu

Thanks, your solutions worked wonderfully, once the setting is in place you don't even need to use N prefix since all strings are UTF-8 by default. Prefixing N makes the characters UTF-16

UserImage.jpg
Trình Trần Văn

Hi
In the DB settings, you can change the collation to the appropriate language format.
Hope it's useful to you. 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.