Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us
topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • December 10, 2016, 12:35:10 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: [idea] Text to Unicode Conversion  (Read 4752 times)

kiran45

  • Participant
  • Joined in 2008
  • *
  • Posts: 5
    • View Profile
    • Donate to Member
[idea] Text to Unicode Conversion
« on: March 21, 2008, 01:57:53 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.c...der/fascodersv-e.cgi to do this. However, I need a desktop script/software.

lanux128

  • Global Moderator
  • Joined in 2005
  • *****
  • Posts: 6,258
    • View Profile
    • Coding Snacks by Lanux128
    • Read more about this member.
    • Donate to Member
Re: [idea] Text to Unicode Conversion
« Reply #1 on: March 21, 2008, 03:33:43 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..../stringconverter.htm

kiran45

  • Participant
  • Joined in 2008
  • *
  • Posts: 5
    • View Profile
    • Donate to Member
Re: [idea] Text to Unicode Conversion
« Reply #2 on: March 21, 2008, 04:35:50 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,092
    • View Profile
    • Donate to Member
Re: [idea] Text to Unicode Conversion
« Reply #3 on: March 21, 2008, 08:36:38 PM »
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....secure_html_lock.htm
$50 - has not been updated for several years sorry, "about" says copyright 2008
« Last Edit: March 21, 2008, 08:41:09 PM by Curt »

kiran45

  • Participant
  • Joined in 2008
  • *
  • Posts: 5
    • View Profile
    • Donate to Member
Re: [idea] Text to Unicode Conversion
« Reply #4 on: March 21, 2008, 09:52:42 PM »
Hi Curt,
thanks for the link. That's a nice application.

skrommel

  • Fastest code in the west
  • Developer
  • Joined in 2005
  • ***
  • Posts: 886
    • View Profile
    • 1 Hour Software by skrommel
    • Donate to Member
Re: [idea] Text to Unicode Conversion
« Reply #5 on: March 23, 2008, 04:05:16 AM »
 :) Here's an AutoHotkey version!

Skrommel

input=http://www.example.com
output=
Loop,Parse,input,
  output:=output "&" Asc(A_LoopField) ";"
MsgBox,%output%
Please stop by my site at  1 Hour Software by skrommel  for downloads and more info.