I am trying to get encoding to Greek on on windows phone 8:
Encoding aaa = Encoding.GetEncoding("ISO-8859-7");
The exception i get is
'ISO-8859-7' is not a supported encoding name.
I also tried:
Encoding aaa = Encoding.GetEncoding("windows-1253");
Encoding aaa = Encoding.GetEncoding("1253");
Encoding aaa = Encoding.GetEncoding("el-GR");
I am testing it only at a emulator that has regional settings to Greece.
Currently i don't have a device to test it.
Related
After sending the following payload to MSTeamsBot:
{
"type":"messageBack",
"title":"Sotto Mare Oysteria & Seafood Rating: 4.5",
"displayText":"You chose Sotto Mare Oysteria & Seafood Rating: 4.5",
"text":"sotto-mare-oysteria-and-seafood-san-francisco",
"value":{
"property":"sotto-mare-oysteria-and-seafood-san-francisco"
}
}
The displayText is changed from
You chose Sotto Mare Oysteria & Seafood Rating: 4.5
to
Sotto Mare Oysteria & Seafood Rating: 4.5
Note that the & is being converted to &
How can I get the text to include the ampersand symbol instead of its escape sequence?
I just tested this on the iOS version of Microsoft Teams, and the button I used to deliver the displayText payload did not escape the special characters, including the &. The Windows desktop and web versions of Microsoft Teams, however, did.
This appears to be a per-platform environmental implementation for Microsoft Teams clients, with some escaping the ampersand, and others not.
Also, it seems the payload, from what I'm determining, does not have the escaped ampersand when the card was transmitted from bot to client (when I examined and decoded the card/button makeup, in my test implementation via the web browser version in Teams).
This has less to do with the Bot Framework itself, and more to do with the client being used to serve the Teams bot chat (be it Windows, in-browser, iOS, etc). I would recommend reaching out to MS Teams Support regarding this.
My Lumia 820 is running Windows Phone 8.0. My Lumia 520 is running Windows Phone 8.1 developer preview. Speech reco works fine on the Lumia 520, but with the 820 I get a System.Exception with an HRESULT code of 0x800455BC. I did some research and that error is supposed to be localization related. It happens when the language your phone is set to is not supported by the speech recognizer:
Exception HRESULT: 0x800455BC in speech recongnition in Windows phone 8
Except I am not getting the same call stack as what that page shows. Also, the solution offered on that page says I should set my recognizer to the desired language explicitly. But that's a problem since I get the error when I create the recognizer. Since I can't create it, I can't set the language. Other people get the error when they try to do a speech recognition session.
Note, I definitely have enabled speech recognition via the phone settings, even allowing it when the phone is locked. Have any of you seen this and know what to do about it? I get the error right when I try to construct the SpeechRecognizer object:
// Create the recognition engine.
this.SpeechRecognizerObj = new SpeechRecognizer();
I tried Speech API example for Windows Phone 8. in my call phone 2 languages install en-GB and en-IN and my phone default language is en-in, when i tried with en-gb, it is working fine but when i tried with phone default language which is en-in, it is not working
it gives error , it throws exception.
On this code:
Perform speech recognition.
this.recoOperation = recognizer.RecognizeAsync();
var recoResult = await this.recoOperation;
It throws Exception:
**SPERR_WINRT_UNSUPPORTED_LANG 0x800455BC The requested language is not supported.**
So, It is means what Indian English is not supported with Speech Recognitiona API or I should change some additional settings to make it work?
Thanks.
As the documentation on Dev Center, this error code means “The requested language is not supported.” And this will happen on a new phone (or sometimes after you reset the phone) when the speech is activated, a language is chosen, but the language pack is not actually downloaded and installed on the phone. The user will have to go to phone settings to choose another speech language and then switch back again to see the message prompt for installing the language pack.
Bing speech require english(us) language(or other supported language) to be enabled in your phone's language settings. After that you get a prompt to restart, which will make it work
Example (Windows Phone 8 - changing languages)
Sending a time zone of "Pacific Standard Time" back to my web service and
calling the method below works fine.
var TimeZone TimeZoneInfo.FindSystemTimeZoneById(timeZone);
Changing the phone language to Spanish and sending back "Hora estandar, Pacifico"
which is the same time zone in Spanish fails.
TimeZoneInfo for Windows Phone does not seem to provide access to the English version
of the time zone when the language is set to Spanish.
i am building a server application using eclipse , and the client is android application
when i used just Java application i can read arabic chars from mysql and can print it correctly to eclipse ,but on server application i can't , the results are question marks like this `?????`
i am trying to print the results on eclipse not on android
my connect to database is :
String unicode = "?useUnicode=yes&characterEncoding=UTF-8";
Class.forName("com.mysql.jdbc.Driver");
con = (Connection) DriverManager.getConnection(
"jdbc:mysql://localhost:3306/ams-competation" + unicode,
username, password);
don't care about android , i am asking how to read and print arabic chars on eclipse server application
EDIT
seems like my problem is from the eclipse not from the connection because when i tried this System.out.println("روما"); , i got question marks
and when i tried to check that question marks with this statements
if(q.getFirstChoice().equals("بيرلو"))
System.out.println("dddd");
the results was dddd , so i can read it correctly from mysql , but my problem on printing the results
The problem is system.out do not support UtF-8 characters so you should be using following code
PrintWriter out = new PrintWriter(new OutputStreamWriter(System.out));
out.println(“some-utf8-string”);
you can also see the reference.
Edited:
Other workaround is
In the Run Configuration, Arguments tab, I added "-Dfile.encoding=UTF-8" to the VM arguments
In the Run configuration, Common tab, I set the Console Encoding to UTF-8