DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: [idea] Text to Unicode Conversion  (Read 11,436 times)

kiran45

  • Participant
  • Joined in 2008
  • *
  • Posts: 5
[idea] Text to Unicode Conversion
« on: March 21, 2008, 06:57 AM »
Hi,
I am writing a script that requires me to convert normal urls into unicode form. I am trying to do something like this:
Quote
inputvar=http://www.example.com
Transform, outputvar, unicode, %inputvar%
msgbox, %outputvar%

However, I am not able to convert the text. please help
thanks

P.S. We have websites like http://tokira.net/unicode or http://fantomaster.com/fantomasSuite/shadowCoder/fascodersv-e.cgi to do this. However, I need a desktop script/software.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,277
    • Coding Snacks
    • Volunteers/Staff
    • Gathering Badge
    • Participated in NANY Challenge Once
    • Linux User
Re: [idea] Text to Unicode Conversion
« Reply #1 on: March 21, 2008, 08:33 AM »
is this what you're looking for? StringConverter - a win32 console and COM component free software.

Features :
• Convert a FILE or a string from/to ANSI, OEM, BASE64, UNICODE.
• Usable either from command-line or from as a COM Component inside a script.
• Allow Raw encoding of Unicode strings (like described in Q263991 to change Password with LDIF or LDAP in Active Directory).

http://www.gbordier.com/gbtools/stringconverter.htm

kiran45

  • Participant
  • Joined in 2008
  • *
  • Posts: 5
Re: [idea] Text to Unicode Conversion
« Reply #2 on: March 21, 2008, 09:35 AM »
Hi,
Sorry. I am afraid this will not do the job. I was looking for something like this:
When I give this string
Quote
http://www.example.com
I should get output like this
Quote
http://www.example.com

I tried to get this output with stringconverter, but failed. Please try yourself and let me know if you get. It will be OK even if I can get the ouput on command line or inside a new file. An AHK script would be even better, because I can integrate it into my existing ahk script.

I apologize if I am not clear in my first post. Thanks again for trying.

Curt

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 7,565
Re: [idea] Text to Unicode Conversion
« Reply #3 on: March 22, 2008, 01:36 AM »
So, DonationCoder.com becomes &#119&#119&#119&#46&#100&#111&#110&#97&#116&#105&
#111&#110&#99&#111&#100&#101&#114&#46&#99&#111&#109 - is that it?

http://www.submitad.com/secure_html_lock.htm
$50 - has not been updated for several years sorry, "about" says copyright 2008
« Last Edit: March 22, 2008, 01:41 AM by Curt »

kiran45

  • Participant
  • Joined in 2008
  • *
  • Posts: 5
Re: [idea] Text to Unicode Conversion
« Reply #4 on: March 22, 2008, 02:52 AM »
Hi Curt,
thanks for the link. That's a nice application.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 933
    • Participated in NANY Challenge Twice
    • Coding Snacks
Re: [idea] Text to Unicode Conversion
« Reply #5 on: March 23, 2008, 09:05 AM »
:) Here's an AutoHotkey version!

Skrommel

Code
input=http://www.example.com
output=
Loop,Parse,input,
  output:=output "&" Asc(A_LoopField) ";"
MsgBox,%output%

Original address: https://www.donationcoder.com/forum/index.php?topic=12730.0