Jump to content

Problem with a Character in MsgBox?


Damein
 Share

Recommended Posts

When I use the following code I get weird symbol's in my message box, shown below.

Image of MsgBox:

Posted Image

Here is the code.

#include <array.au3>
#include <file.au3>
Global $aFile, $aLinks
Global $IniFilePath, $sSource, $sLink
Global $n = 0

$IniFilePath = "Names.ini"
$sSource = BinaryToString(InetRead("http://www.oneplace.com/ministries/paws-and-tales/listen/broadcast-archives.html"))
$aLinks = StringRegExp($sSource,'(?i)(?s)<a class="EpisodeLink" href="(.*?)">(.*?)</a>',3)
If Not IsArray($aLinks) Then
    MsgBox(0,"error","No links found!")
    Exit
EndIf

FileDelete($IniFilePath)

Global $aLinkTitles[UBound($aLinks)/2][2] ;this is still a good way to create an array is big enough, althoug probably too big if you skip double links.

For $i = 0 To UBound($aLinks) -1 Step 2
    $sSource2 = BinaryToString(InetRead($aLinks[$i]))
    $aLinks2 = StringRegExp($sSource2,'(?i)(?s)<div class="EpisodeDescription">(.*?)</div>',3)
    for $j = 0 to UBound($aLinks2) - 1
    $aLinkTitle = StringRegExpReplace($aLinks[$i+1],"(?i)(?:Episode #\d+: ){0,1}(.*?)(?:â€.*){0,1}","$1")
            MSgBox(0, "Test", "Episode Name: " & $aLinkTitle & @CRLF & "Episode Info: " & $aLinks2[$j])
Next
Next

I tried doing a simple StringReplace.. but to no avail :(

Thanks a lot.

*** EDIT ***

I did it using multiple string replaces :graduated:

Thanks.

Edited by Damein

MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Link to comment
Share on other sites

That fixed it up, much quicker and cleaner :graduated:

Thanks

Edited by Damein

MCR.jpg?t=1286371579

Most recent sig. I made

Quick Launcher W/ Profiles Topic Movie Database Topic & Website | LiveStreamer Pro Website | YouTube Stand-Alone Playlist Manager: Topic | Weather Desktop Widget: Topic | Flash Memory Game: Topic | Volume Control With Mouse / iTunes Hotkeys: Topic | Weather program: Topic | Paws & Tales radio drama podcast mini-player: Topic | Quick Math Calculations: Topic

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...