1

Using the code examples given by Microsoft:

http://gallery.technet.microsoft.com/Language-Translation-e3898f0a

I have enabled translation in my SQL Server 2008 database. When the input string is relatively simple, without accented characters, translation works fine.

Example call (through Management Studio):

SELECT [dbo].[udfCallTranslator] ('Hej','sv','en')

Returns:

Hi

The problem lies when there are special accented characters in the input:

SELECT [dbo].[udfCallTranslator] ('Biogasanläggningar','sv','en')

Returns:

Biogasanlaggningar

It should return:

Biogas plants

If I give the input to Microsoft's web site (https://datamarket.azure.com/dataset/bing/microsofttranslator) it translates it correctly.

If i call the underlying dll function through a let's say Windows Form application, it also translates it correctly.

So, my guess is that something isn't passed correctly from Management Studio to the underlying function.

I tried changing the editor's font to Arial Unicode MS, but nothing changed.

Any other insight on what could be wrong?

1 Answer 1

1

This should help.

SQL Server multi language data support

Have you made sure its in NVARCHAR as well as preceded all passed unicode strings with N?

SELECT [dbo].[udfCallTranslator] (N'Biogasanläggningar','sv','en')
0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.