I use Get text to get a Arabic text from a website. When I msg box it, appears correctly.
But then When I try to insert the same Arabic text to database using Execute Non query it is done correctly. But in the database when i query back it is not properly inserted.
It appears as “??? ??? ???” .Kindly help with this.
Thanks for replying.
The Database - Oracle SQL dev
Regarding the character sets
[PARAMETER,VALUE
2 NLS_CHARACTERSET, AR8IS08859P6
3 NLS_NCHAR_CHARACTERSET, AL16UTF16]
The above character set is used in the database.
I get the arabic text correctly using uipath but while inserting using query it is done.But while I see in SQL it is '???" .I can’t see the arabic text
maybe for analyis reasons the string from get text can be converted into another encoding and the converted text is used for storing into the datatable.
maybe this one: 28596, iso-8859-6 Arabic (ISO)
On the first look it looks like a encoding issue. But there also a few things which can influence the tests e.g.
here it is unclear what is done…
However give a first try on changing the encoding as mentioned above
I actually did this encoding but am not sure what is the correct syntax I shud give in the assign activity.
The variable I get as output from get text is - ara_text.
Could you pls give me the correct encoding conversation syntax?
the Source Encoding maybe is triggered by your machine. Lets try to get it with:
System: System.Text.Encoding.Default
.Net Intern: System.Text.Encoding.Unicode
@ppr
I tried this - System.Text.Encoding.Convert(System.Text.Encoding.GetEncoding(“iso-8859-6”),System.Text.Encoding.Default,system.Text.Encoding.utf8.GetBytes(COMPANY_ARA))
But getting error if i assign this value to a string.
currently we do see a missmatch between your code line and the sample lines.
For a fully analysis if the conversion is not fixing the issue, then at least it should be further researched:
get text, Convert to AR encoding, write this text to a text file and check if the character encoding was correctly applied
if text was correctly applied then used it for e.g. inserts with SQL Statement
in case of it is failing again, then check what the DB driver is setting / is expecting on character encodings. The driver itself could jump out of the defined / foreseen character encodings and is to count on the components which are to check.
@ppr ,
How to declare bytes in uipath or the equavalent varaiable datatype?
If i assign system.text.encoding.default to a string it throws error.
Kindly help,
thanks
thanks @ppr ,
Can you tell me how to give this line in uipath?
byte sBytes = senc.GetBytes(Message)
I created a byte string called sBytes and assigned value as sourceEnc.GetBytes(ARA_TEXT)…but getting error like object reference not set to instence of object
So what should I do with NLS_LANG.
there is not a parameter called as nls_lang in my client system which has uipath.I tried adding too and running in uipath but that too failed.
Any idea on this?
Thanks,
@ppr ,
Thanks,
details - the arabic text is from KSA(saudi arabia)
as you said I have done encoding too - which gives the same result
I just want to insert into oracle using the general insert query for oracle.
For sample text you can have any arabic text for example.