Foreign Fonts in dynamic XML

I'm working on a learning language app, so far, that teaches
Thai to English speakers and English to Thai speakers. I'm pulling
lesson words from an access database that is storing foreign
characters just fine. Here is the xml page for the first lesson of
eng/thai -
http://www.netspeaknow.com/getlessonwords1.cfm
and code:
<cfquery name="getLastLessonID" datasource="langDB">
SELECT lastLessonID
FROM Users
WHERE userID = 1
</cfquery>
<cfif #getLastLessonID.RecordCount# EQ 1>
<cfquery name="getLessonWords" datasource="langDB">
SELECT LessonMP3.filePath, LessonWords.displayWord,
LessonWords.phonetic, LessonWords.definition
FROM LessonWords INNER JOIN LessonMP3 ON LessonWords.sndID =
LessonMP3.sndID
where lessonPlanID = 18
</cfquery>
</cfif>
<cfcontent type="text/xml" reset="yes">
<cfsetting showdebugoutput="No"
enablecfoutputonly="Yes">
<?xml version="1.0" encoding="UTF-8"?>
<cfoutput>
<results_packet>
<cfloop query="getLessonWords">
<rec displayword="#displayWord# - #phonetic#
/#definition#" sndurl="#filePath#" />
</cfloop>
</results_packet>
</cfoutput>
Here's the error I'm get trying create the same document with
Thai characters.
http://www.netspeaknow.com/getlessonwords2.cfm
I don't have any problem displaying foreign characters in my
browser:
Here's a page that is pulling the same data for the same
thai/eng lesson.
http://www.netspeaknow.com/lessonview_thai.cfm
Does anyone know how I can get foreign characters, not just
Thai, into my XML document?

skyhead03 wrote:
> <cfcontent type="text/xml" reset="yes">
> <cfsetting showdebugoutput="No"
enablecfoutputonly="Yes">
enablecfoutputonly="Yes", you need to wrap *all* the xml
output in a cfoutput,
no xml header/root is getting sent to the browser which is
probably what "XML
Parsing Error: not well-formed" is all about. try this:
> <cfoutput>
<?xml version="1.0" encoding="UTF-8"?>
> <results_packet>
> <cfloop query="getLessonWords">
> <rec displayword="#displayWord# - #phonetic#
/#definition#"
> sndurl="#filePath#" />
> </cfloop>
> </results_packet>
> </cfoutput>
>
> Here's a page that is pulling the same data for the same
thai/eng lesson.
>
http://www.netspeaknow.com/lessonview_thai.cfm
that page is lying:
<meta http-equiv="Content-Type" content="text/html;
charset=iso-8859-1" />
might indicate other encoding problems lying in wait for you.
> Does anyone know how I can get foreign characters, not
just Thai, into my XML
> document?
"just use unicode"

Similar Messages

  • Adobe Dynamic XML vs Static pdf

    I created a form with LifeCycle Designer ES2, with actions.
    When saved as Adobe Dynamic XML (pdf), it works flawlessly, however the file size is around 1 MB.
    When I save it as Static PDF, the file size is reduced to 195k, but the actions don't work any longer.
    I need the smaller file size because these documents get opened on mobile devices. Is there a way to have the best of both worlds here?
    Either Static PDF with actions working, OR Dynamic XML with a small file size.
    Any help would be appreciated.
    Thanks

    The issue is with the Fonts used inside the PDF. You have used, Impact, Calibri, Courier New along with native Myriad Pro font.
    Since you have used fonts other than the native one, the form is by default embedding these additional fonts as part of the PDF.
    Probably one of the font is occupying all the size of the PDF.
    You have to change the font to either Myriad Pro or Arial which is light weight. (OR) you can make an image out of the Impact font text ("Notice of Violation" and "Officer's report must be sent to the safety office withing 24 hours !") and use it as an image inside the PDF.
    To remove the Embed Fonts option, goto File -> Form Properties menu -> Save Options tab.
    Below is the form with Embed fonts option UNCHECKED.(54 KB). But the special fonts might not display properly.
    https://acrobat.com/#d=nWNcZv9QfO0s7Lkr5HbdEg
    Hope this helps.
    Thanks
    Srini

  • Integrating dynamic xml into xsl

    hi iam having problem in my project i get data from database using jdbc
    then convert it into dynamic xml (depending upon query)bcz there r four different tables in database now i need to know how i convert that into xsl to send it to jsp page.
    thanks in advance

    Jason,
    What you want to do is pretty simple. Some might depend on which version of Pr you have and what its capabilities are.
    While there several ways to do what you want, I'd do a Title with a "handwriting" font, and place it above the white board, i.e. your actor with white board on Video Track 1 and your Title on Video Track 2 (above it). To cover the movement of the white board, I'd Keyframe Motion>Position (and maybe a bit of Motion>Scale) to match the movement of the Title to the movement of the board. You can also simulate the angle that the board is held to the camera and possibly Keyframe that too, if necessary. The Perspective Effect, or Corner Pin could be useful for this.
    There are other things that can be done, such as "writing" the text that will appear. The easiest way is to do a sequence of PSD images in PS and use those, holding on the final full message. Depending on the layout of the text, a simple Crop Effect, or Track Matte Keying can be very effective and useful.
    Good luck,
    Hunt

  • How can you update the content of a textfield in a dynamic xml form from MSAccess and VBA

    I am trying to use the code below to update a field in a dynamic xml form created by Livecycle.
    I can read the field content but cannot change it.
    What am I missing?
    Thanks
    R
    Sub test()
    Dim oPDF As AcroPDDoc
    Dim FileDestName As String
    Dim jso As Object
    Dim ofld As Object
        FileSrcName = "C:\Documents and Settings\My Documents\ADOBE Forms\NoVB.pdf"
        Set oPDF = CreateObject("AcroExch.PDDoc")
        Set jso = oPDF.GetJSObject
        Set ofld = jso.getfield("form1.TopForm.Header.Subform1.Contact")
        Debug.Print ofld.Value
         ofld.Value = "HHH"
        Debug.Print ofld.Value
    oPDF.Save PSsavefull, FileSrcName
    oPDF.Close
    Set jso = Nothing
    Set oPDF = Nothing
    End Sub

    You need to research the difference between an AcroForm and an XFA form.  You're trying to access a "Field" object, which is an AcroForm object.  An XFA form does not have fields, it has nodes.  The JavaScript you are using is specific to AcroForms and you are working with an XFA form.

  • Adobe Livecycle Designer ES 2 - Adobe Dynamic XML Forms?

    How can you convert a dynamic XML form design in a static PDF Form design? I tried to save a dynamic XML Form as a static PDF Form, and then tried to preview it in Designer but the layout change scripts were working which should work only for dynamic xml forms and not for the static pdf forms. Please suggest another way to do it. Thanks in advance.

    You use Master Pages to set layout that you want to use on multiple pages.
    Design what you want in a Master Page and then assign it to the pages you want in Object>Pagination>Place: and choose On Page> whatever you called your Master Page.

  • Font Size in XML Publisher

    Hi,
    I want to display the text font size dynamically. If length of the field more than 10, font size to be reduced. Pl. let me know the ways to format the field. Pl. help.
    Thanks
    Kavi

    Hi,
    Thanks for your suggestion. I tried with your code. It is showing as
    *<fo:inline font-size="6pt">TEXT MSG</fo:inline>*
    This is my code..
    <?choose:?>
    <?when:string-length(‘TEXT’)=4?>
    <fo:inline font-size="16pt"><?’TEXT MSG’?></fo:inline>
    <?end when?>
    <?otherwise:?>
    <?’TEXT MESSAGE OTHER’?>
    <?end otherwise?>
    <?end choose?>
    Anything i missed?

  • Adobe Reader for Android to work with dynamic XML PDF forms?

    Any possibility that Reader for Android will ever work with dynamic XML PDF forms created by Abobe Acrobat Pro?

    GoodReader ($4.99), ezPDF Reader ($2.99) and PDF Expert ($9.99) are well rated and support many more features.
    Here a link for your reference: http://indesignsecrets.com/for-interactive-pdf-not-all-readers-are-equal.php

  • Build a web gallery with amazing flash slideshows with dynamic XML files

    Build a web gallery with amazing flash slideshows with dynamic XML files
    Screenshot:
    Features
    Features
    Transitions, zooming and panning effect You can  choose from  Random, Wipe from Left, Fade to White, Cross Expansion and  other 60-plus  transition effects. Zooming and panning effect is  optional for advanced flash  templates.
    XML-driven This flash slideshow are XML-driven. The XML  document allows more personalized controls over the flash.
    Auto-playback and repeat mode The flash slideshow will play  automatically after preloading, and it can repeat playback.
    Dynamic customization Besides XML control, the  advanced  templates provide many more custom options, so that you can  create slideshow  that fits into your existing web design: width ,  height, border color,  background color, thumbnail size, etc. More about  dynamic customization
    Usage and demo visit: http://webdesigndevelopment.blog.com...swf-xml-files/

    Please excuse the bump...
    Anyone with a LR flash gallery that starts with slideshow in play mode?
    Can it even be set to do this?
    The only code in the style.xml that looks like it might be realted is line 12 <playOptions playMode="pause"/>, changing that to "play" does nothing.
    Thanks,
    Donnie

  • How can i exclude information pages from being printed in a dynamic XML form?

    Hi there,
    i am building a dynamic XML form in Adobe LiveCycle Designer ES2.
    In this form there are pages with information that help the end user fill out the form, but to use - those who process the forms after they have been sent to us - these pages with information are irrelevant.
    Is there a way to tell the form to omit these pages when printing.
    Currently i have set the pages mentioned to be only visable on-screen.  But doing so results in an empty page being printed (only the master page information is visable.)
    Any ideas how i can solve this issue?
    Thank you.

    Create a new master page and set that page to visible screen only. Set your subforms to use that master.

  • Dynamic XML TAGS in PL/SQL

    Hi I wish to have dynamic xml tags in pl/sql e.g. say i have a table xml_table with xml_tag and tag_value as two columns. Let us say it has a rows
    XML_TAG = timezone
    TAG_VALUE = UK
    I want the output in the following format
    <timezone>UK</timezone>.
    Any ideas how to achieve it using ORACLE functions and not concatenate <> to the columns? Help would be much appreciated.

    This is a forum discussing questions related to Oracle Portal. I'd recommend you to take a look at XDB and XSQL, on Oracle's Web site at http://otn.oracle.com.
    Hope it helps,
    Peter

  • Adobe LiveCycle Dynamic XML forms & Apple iPad

    Are Adobe LiveCycle Dynamic XML forms viewable/useable by Apple iPad and Apple phone or other mobile devices? 

    According to Adobe, you can with LiveCycle ES4. At least, that's how I read their blog post on ES4 Mobile forms support.
    Of course, there have been several discussions started about this in the Adobe forums.
    Re: Unable to view the form in Mobile which was created using LiveCycle
    Re: I created a form using Adobe Livecycle, but I cannot open the form on Ipad or Samsung tablet pc.
    Re: Trouble using form on Android and/or iOS devices
    Re: help help...Making existing livecycle fillable form mobile(ios/android adobe reader) compatible
    Hope these help.

  • Dynamic XML PDF not importing fields

    I have a PDF developed in Livecycle and saved as a dynamic XML.
    My database is MS Access and from this I've exported a query saved as an XML file, a XSD schema and an XSL stylesheet. (files attached)
    I'm trying to populate the PDF from the above mentioned files client-side. I have the fields set up to display in a table with repeating rows.
    It seems that I've set everything up okay and I get no error generated in the log file when I preview the PDF in Livecycle, but, the fields are not
    being generated.
    I suspect maybe this is because I don't have the nested forms set up properly for a flowed subform. But I should get at least the first row generated
    shouldn't I, if it is reading the nodes in the XML?
    Attached is (a mock-up) of the PDF along with the XML, XSD and XLS. This form should flow to other pages when dynamically built and I'm hoping to
    display the header on each page (the header will be on the Master Page -- it will contain site links, etc.)
    I hope to not only import data to a PDF this way but also to export fields from the PDF in the same way for database edits...
    Can anyone tell me what I'm doing wrong in the attached?
    And, on another note... do all of the above need to be in the same folder together on the server or can I put the PDF in one folder and the XML, XSD
    and XLS a different folder? (Or the PDF and XLS in the same folder and XML and XSD files in a different folder, etc.)...
    Thanks for any reponses on this.
    - ed
    PS: Below is the XSD schema code (since I can only upload the 3 other files here)
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:od="urn:schemas-microsoft-com:officedata">
    <xsd:element name="dataroot">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element ref="WMS_x0020_BMI_x0020_Percentile_x0020_ZScore" minOccurs="0" maxOccurs="unbounded"/>
    </xsd:sequence>
    <xsd:attribute name="generated" type="xsd:dateTime"/>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="WMS_x0020_BMI_x0020_Percentile_x0020_ZScore">
    <xsd:annotation>
    <xsd:appinfo/>
    </xsd:annotation>
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="LastName" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="255"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="Firstname" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="255"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="PreHeight" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="50"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="PreWeight" minOccurs="0" od:jetType="text" od:sqlSType="nvarchar">
    <xsd:simpleType>
    <xsd:restriction base="xsd:string">
    <xsd:maxLength value="50"/>
    </xsd:restriction>
    </xsd:simpleType>
    </xsd:element>
    <xsd:element name="PreBMI" minOccurs="0" od:jetType="double" od:sqlSType="float" type="xsd:double"/>
    <xsd:element name="PreBMIPercentile" minOccurs="0" od:jetType="double" od:sqlSType="float" type="xsd:double"/>
    <xsd:element name="PreZScore" minOccurs="0" od:jetType="double" od:sqlSType="float" type="xsd:double"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>

    Sorry for the delay in replying to this post. I got stuck at a friend's from the weekend snow we had... and am finally back on my own computer.
    Just before leaving Friday I found the problem with the form not displaying data fields read from the XML.
    It's a bit embarrassing to admit but, per Steve's instruction here to change the form preview properties (file/form properties) (thanks, Steve!) - I changed the preview from 'print one-sided' to 'interactive' and noticed that I had not set up the link to the XML under 'Data File'. Duh! So, it is reading the data from the XML now.
    However... For the form to display, I had to (under 'connection properties) take the XSLT file off. Under 'Connection Properties' the form is set up as XML Schema with the link to the XSD set up.
    The problem now is that a few of the dynamic fields are numbers. These number fields in the database only have two digits to the right of the decimal point (as in 93.79) but when the form loads these fields in the table in preview mode these fields contain 8 digits to the right of the decimal point (as in 93.79362082). I don't know why this is except that maybe it is because it's no longer reading from the XSLT file. All I want it to do is read the field exactly as it is in the database...
    The table on the form doesn't display as it should either. The table expands with the rows its presenting but this runs to the very bottom of the page and doesn't flow to the next page. I've tried changing the size of the 'root' form on the Master page as well as the size of the 'parent' subform of the table subform but the table still runs to the bottom of the page... I'll keep playing around with this until I fix it unless someone can point me in the right direction...
    Thanks for any leads on this...
    (new corrected file attached)
    Graham, this stuff really is interesting! These handful of files working together to build a dynamic PDF, reading the database XSD schema, an XML file and the XSL file as well as throwing in some Javascript functions is really cool... I'm also (hopefully) planning to have Cold Fusion query the database, depending on the login person's admin privilages, parse the fields from the database and build the XML file from this data 'on the fly' at login... Quite a lot going on in the background here to build the PDF! (I wish I could answer your question about the stylesheet but, obviously from the above, I'm a novice at this - I'm new at this and trying to grope my way around this stuff in the dark. These forums have been helpful as well as googling questions, but, there is still a learning curve here. I'm pretty rough with Javascript as well and that's a big feature of this stuff...)
    Thanks to anyone for direction on getting this file to display properly and the number fields to show the same as in database...
    - ed

  • Quotation marks converted to foreign fonts after upload to another server.

    I've uploaded my website with Fetch and the quotation marks are converted into foreign fonts.
    How do I correct?

    I've uploaded my website with Fetch and the quotation marks are converted into foreign fonts.
    How do I correct?
    Try this:
    iWeb > Preferences > Autocorrection: Uncheck box for "Use Smart Quotes" and republish and reupload.
    But the real problem is your server. See the server settings section of this note:
    http://homepage.mac.com/thgewecke/iwebchars.html

  • Dynamic XML with Weblogic ?

    hello all !!
    May be this question is already answered, and sorry for that, but here again !
    I am trying to use Weblogic server, in order to process XML files, this files
    make a query to my Oracle Data Base, Before this I was using Cocoon (apache) to
    generate the dynamic XML with the query's result, is there a way to make the same
    thing with Weblogic ? anybody know how to do it ? do yu have a simple example
    ? here is a sample code that I use with cocoon.
    <?xml version="1.0" ?>
    <?cocoon-process type="xsp"?>
    <xsp:page language="java" xmlns:sql="http://www.apache.org/1999/SQL"
    xmlns:xsp="http://www.apache.org/1999/XSP/Core"
    xmlns:request="http://www.apache.org/1999/XSP/Request">
    <page title="SQL Search Results">
    <sql:execute-query>
    <sql:driver>oracle.jdbc.driver.OracleDriver</sql:driver>
    <sql:dburl>jdbc:oracle:thin:@IP_Address:1521:cta</sql:dburl>
    <sql:username>User</sql:username>
    <sql:password>Password</sql:password>
    <sql:doc-element>My_table</sql:doc-element>
    <sql:row-element>record</sql:row-element>
    <sql:query>select * from My_table</sql:query>
    </sql:execute-query>
    </page>
    </xsp:page>
    Thanks a lot for your help !
    Gustavo Mejia
    INFOTEC

    Since Cocoon is a servlet, just install it in Weblogic.
    "Gustavo Mejia" <[email protected]> wrote in message
    news:3b5ca3fa$[email protected]..
    >
    hello all !!
    May be this question is already answered, and sorry for that, but hereagain !
    >
    I am trying to use Weblogic server, in order to process XML files, thisfiles
    make a query to my Oracle Data Base, Before this I was using Cocoon(apache) to
    generate the dynamic XML with the query's result, is there a way to makethe same
    thing with Weblogic ? anybody know how to do it ? do yu have a simpleexample
    ? here is a sample code that I use with cocoon.
    <?xml version="1.0" ?>
    <?cocoon-process type="xsp"?>
    <xsp:page language="java" xmlns:sql="http://www.apache.org/1999/SQL"
    xmlns:xsp="http://www.apache.org/1999/XSP/Core"
    xmlns:request="http://www.apache.org/1999/XSP/Request">
    <page title="SQL Search Results">
    <sql:execute-query>
    <sql:driver>oracle.jdbc.driver.OracleDriver</sql:driver>
    <sql:dburl>jdbc:oracle:thin:@IP_Address:1521:cta</sql:dburl>
    <sql:username>User</sql:username>
    <sql:password>Password</sql:password>
    <sql:doc-element>My_table</sql:doc-element>
    <sql:row-element>record</sql:row-element>
    <sql:query>select * from My_table</sql:query>
    </sql:execute-query>
    </page>
    </xsp:page>
    Thanks a lot for your help !
    Gustavo Mejia
    INFOTEC

  • How to parse a dynamic xml in java

    I have to parse a dynamic xml document : the different TheItemNames and the racine are changing . So , can you help me with a code because to parse a xml document you must presents the racine and TheItemNames

    My previous post gives me an idea on how to use ArrayList of ArrayList as dynamic 2 dimensional array.
    More info bellow
    ArrayList rows = new ArrayList()
    ArrayList columns_of_row0 = new ArrayList()
    rows.insertAt(0) = columns_of_row0;
    ArrayList columns_of_row1 = new ArrayList()
    rows.insertAt(1) = columns_of_row1;and so on..
    You can't use the code exactly or similar way, it would depend on how this array grows in your application.
    But this and my previous post should give an idea on how to insert and retrieve elements from ArrayList when
    treated as 2 dimensional array.
    Hope this helps.

Maybe you are looking for