PDA

View Full Version : Apostrophe is changed to a Question Mark



Cocophone
August 8th, 2005, 11:13 PM
I'm using the NR Demo 1024 x 768 ccf with the LDJ jukebox setup. Everything works well except I have a button that gives the overview of the DVD and Netremote is substituting a "Question Mark" for "Apostrophes"

The overview button uses AvidUtilities Text String that I setup in the Netremote Designer.

Does anybody have an idea if the problem is with:

1. LDJ Jukebox
2. NR Demo 1024 x 768 ccf
3. Avid Utilities Text String
4. Netremote Designer
5. DVD Profiler's XML for collection.xml file.

or

6. Some combination of 1. to 4.

I did see in the xml file small squares where there should be an apostrophes. When I cut and past from the xml file the squares are dropped and there is not any apostrophes.


Thanks for any help.

mhwlng
August 8th, 2005, 11:45 PM
try a different font

Marcel

Cocophone
August 9th, 2005, 06:07 AM
I switched to Arial and its still changing to question marks.

Here's two links to a google search I did:

http://inmagic.infopop.cc/groupee/forums/a/tpc/f/450605627/m/646107529/r/924108729

http://groups-beta.google.com/group/microsoft.public.xsl/browse_frm/thread/94d2b865ee6bc57/b6600ee680b56757?lnk=st&q=apostrophe+%2Bxml+%2B%3F&rnum=17&hl=en#b6600ee680b56757

They are talking about smart quotes and xml being replaced by question marks.

mhwlng
August 9th, 2005, 06:39 AM
I think the problem is in luacom in girder where the content of the xml file is tranferred to lua variables...

what version of girder and what version/date of luacom.dll are you using ?

also please attached an example of the xml file to this thread...

Marcel

Cocophone
August 9th, 2005, 08:06 AM
Girder = 3.3.10

Luacom.dll is dated 10/19/04
How can I tell what its version?


Here is part of the xml file that I copied and pasted from an xml editor

<Overview>In 1978 Rolling Stone magazine named Crowell the next can’t-miss star. After decades in the business, numerous awards and dozens of Top 10 hits, Crowell is still a sure bet. Even if they don’t know his name, most music fans are familiar with Crowell’s work. Songs he’s written have become hits for various artists including “Ain’t Living Long Like This,” by Waylon Jennings,“Leavin’ Louisiana In the Broad Daylight” for the Oak Ridge Boys,“Shame on the Moon” for Bob Seger, “Somewhere Tonight” by Highway 101, “Ashes By Now” by Lee Ann Womack,“Please Remember Me” by Tim McGraw and “Lovin’ All Night” by Patty Loveless. Although songwriting is his calling-card, Crowell said that he’s also become a better performer through the years. </Overview>

Thanks

mhwlng
August 9th, 2005, 08:07 AM
I need the actual xml file !

Marcel

mhwlng
August 9th, 2005, 09:03 AM
without the xml file to confirm, I think that the problem is actually in dvdprofiler and not luacom...

I *think* that your file starts with

<?xml version="1.0" encoding="us-ascii"?>

or

<?xml version="1.0" encoding="ISO-8859-1"?>

these special quotes aren't in either character set, so when you read the xml file in girder using the msxml engine, it gets replaced with a '?'... (perfectly normal :D )

change the xml header to

<?xml version="1.0" encoding="windows-1252"?>

and your quotes should appear...

Marcel

Cocophone
August 9th, 2005, 09:05 AM
Here is a zip of the xml file

it does start with <?xml version="1.0" encoding="us-ascii" ?>

When I get home from work I will try it out.

Thanks for the help

mhwlng
August 9th, 2005, 09:40 AM
ok,

the problem is definitely in the xml file and not in NR/Girder.

a single quote is represented in the xml file as :

& # 1 4 6 ;

which is the 1 byte ansi code for the quote....

xml needs a 2 byte unicode value, which for this quote is :

& # 8 2 1 7 ;

or in hexadecimal notation :

& # x 2 0 1 9;

so if I replace

& # 1 4 6 ;

with

& # x 2 0 1 9;

then I see a quote in NR

(remove the spaces from above text first!!)

this works independent of whatever encoding the xml file has.
So you don't need to change that, as I guessed above...

here's a table :

http://www.alanwood.net/demos/ansi.html

so you've got some searching & replacing to do :-)

Marcel

Cocophone
August 9th, 2005, 09:59 AM
I have a windows version of "grep" I will try that.

Cocophone
August 10th, 2005, 12:29 PM
I found a small utility that I'm using in a batch file.

The utility is called Strfind.exe from http://www.gryc.ws/utility.htm

my batch file is as follows

strfind -i -r #145 #x2018 *.xml
strfind -i -r #146 #x2019 *.xml
strfind -i -r #147 #x201C *.xml
strfind -i -r #148 #x201D *.xml
strfind -i -r #151 #x2014 *.xml

Run the batch file and all is good with the xml file.

Thanks for the help.