Unable to send Arabic text files using MMS | Search |
NowSMS Support Forums ⬆ NowSMS Support - MMS & Advanced Issues ⬆ Archive through June 09, 2011 ⬆ |
◄ ► |
Author | Message | |||
John Haindel New member Username: Jhaindel Post Number: 3 Registered: 05-2010 |
Hello, Without modifying anything, when I use the web interface to send Arabic text using MMS by writing the text in the text box it works just fine. But when I attached an Arabic text file to the MMS from the web interface I receive square symbols. And if I try to use vbscribt with the following code, I receive something but it says unknown format and it does not show anything. Function WinHTTPPostRequest(URL, FormData, Boundary) Dim charset charset="iso-8859-6" Dim http Set http = CreateObject("MSXML2.XMLHTTP") http.Open "POST", URL, False http.setRequestHeader "Content-Type", "multipart/form-data; boundary=" + Boundary http.send FormData End Function Any suggestions Best regards and thanks, | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2214 Registered: 08-2008 |
Hi, I don't know how to answer your VBscript question because I'm not sure what your form data is. Including &charset=iso-8859-6 would probably resolve any character set issues, but I think your script may be incomplete. The quick answer to your other issue is to save the text file using utf-8 encoding. | |||
John Haindel New member Username: Jhaindel Post Number: 4 Registered: 05-2010 |
Hi, I couldn’t find out where is the problem so far. As you said saving the text file as utf-8 will solve the problem. The problem is: I could not find the code in vbscript to covert from Unicode “Arabic” to UTF-8. Thanks | |||
Des - NowSMS Support Board Administrator Username: Desosms Post Number: 2218 Registered: 08-2008 |
Hi John, Currently we only support character text translation for text submitted via the MMSTEXT parameter (with &charset=iso-8859-6), not for files. It would be a good idea for the future. For now, maybe this script will help you out: http://www.robvanderwoude.com/vbstech_files_utf8.php -- Des NowSMS Support |