Can't get UTF-8 characters from XML file displayed correctly (Cocoa Touch)

Hi there,
I'm trying to read an XML file with Japanese and Korean characters (encoded UTF-8) into a String like
NSString *s = [[NSString alloc] initWithContentsOfURL:[NSURL URLWithString:@"http://.../data1.xml"] encoding:NSUTF8StringEncoding error:&e];
However, the output just gives me some wrong characters. I also tried use NSData, but the result was the same.
The same when I parse the XML file with
NSXMLParser *parser = [[NSXMLParser alloc] initWithContentsOfURL:URL];
The parser function just gives back gibberish.
When I write the data into a table cell (cell.text = ...), only the first character is displayed followed by "...".
Where can I start looking to get this right? I'm not so experienced in Cocoa yet, so I feel that I'm missing something simple here...
Thanks,
Thomas

I think so (haven't checked), but it is a really simple test xml which is not really error prone).
But the problem is a different one, because I also just tried to read a txt file with some Japanese characters into an NSString using initWithContentsOfURL.
When I print the string in the console, I only get messed up characters (the latin characters next to the Japanese are displayed fine).
It is a general problem of reading out an UTF-8 file from an url.
Spent the whole last night to google something helpful but couldn't find anything. Now I'm tired at work
Thomas

Similar Messages

  • How to get UTF-8 Characters from HTML to Java?

    Hi everyone, I'm trying to set up an application that will allow display and entry of international data from HTML forms via servlets. The problem is that I can't get the data back into a java string to apply to the DBMS.
    I have tried using UTF-8 and specific character sets such as ISO-8859-5 (Russian). I have specified these character sets/encodings as follows:
    HTML: meta content-type header charset=xxx and <form accept-charset=xxx
    Servlet Response: setLocale(appropriate locale) and setContentType("text/html; charset=xxx") prior to calling response.getWriter()
    Servlet Request: setCharacterEncoding("xxx") (e.g. servlet 2.3)
    When I use request.getParameter(xxx) I get normal characters (a, b, c) and nothing for international characters or sometimes question marks.
    I have also tried various combinations of:
    new String(request.getParameter("xxx").getBytes("xxx"),"xxx")
    Could someone please point me in the right direction?
    TIA

    Thanks for all of your suggestions. It still refuses to work.
    I entered the following: ���^�E on the HTML form using the Chinese(PRC)keyboard on my Win2K box.
    I checked and verified the correct encoding in the servlet request (GB2312 for chinese characters)
    request.getParameter(xxx) yields ???
    new String(request.getParameter(xxx).getBytes("GB2312")) yields three boxes (values 20309, 27946 and 23380)
    new String(request.getParameter(xxx).getBytes("GB2312"), "UTF-8") yields nothing
    Any ideas?

  • Remove ?xml version="1.0" encoding="UTF-8"? from xml file

    I have generated an XML file using sax paraser. In the XML file thats generated I have the version and the encoding line
    <?xml version="1.0" encoding="UTF-8"?>which is automatically generated in my XML file. Is there any way that I can avoid that from the XML file thats generated.

      try
                            FileWriter fr = new FileWriter(new File(path, fileName));
                            Document docNode = docNodeMap.get(name);
                            XMLOutputter outputter = new XMLOutputter();
                            outputter.output(docNode, fr);
                            fr.close();
                    catch (IOException e)
                            e.printStackTrace();
                    }this the code generating xml file.

  • How can I get rid of "_data" behind xml file name

    Hello everybody,
    I use xfa.host.exportData("",0) to export xml file which I cann't appoint the name of xml. After I click the exporting button, a window jumps and fill the xml file name automatically, the name is "PDF file name_data.xml", in Adobe Reader Chinese version, "_data" will be translated by Chinese word, so it is not convenience to unify the method of getting xml.
    My problem is if I can get rid of the postfix "_data" in xml file name? I doulbt maybe I can set in LiveCycle Designer, but I can't find out at present.
    Thanks in advance!
    Enlly

    Hello radzmar
    Thank you for you soon reply!
    I learned about the function exportData(), and my form is not certified, so I use exportData("",0) to export xml file. After I click the export button, it will jump out a window to ask for selecting the path, where users want to save the xml file, and, in this window, LiveCycle will fill xml file name automatically by "xxxx_data" (xxxx is the pdf form name). I just wonder if I can avoid "_data" ?
    Do you have any idea? Thanks!

  • How can I get the Email Campaigns Blog module to display correctly in Outlook?

    I'm having a bit of trouble with this. I've used the email campaign builder to build a campaign; added the blog module to it and applied a custom template to it so that it should display correctly, but outlook has other ideas...
    Here's what it should look like:
    and here's what outlook gives me:
    this is built within tables and the tables and cells all have set widths of 520px, yet the blog module seems to ignore this and somehow sit outside of them, breaking the template (BUT only in outlook).
    Is this a problem anyone has experienced before?
    Any ideas on how to fix it?
    Thanks
    Sam

    HTML Email Campaign design is still a very tricky beast.  There are no standards like the makers of the major web browsers have been pushing for and adhering to over the years for web designers so since there are any number of email clients like your native mobile phone email clients, desktop clients like Outlook and Thunderbird and then web-based email clients like Gmail, Yahoo!, etc. there's no standard to display HTML in emails so each client does things differently.
    Outlook and Gmail in the past have been the worst offenders. Fixing it is nothing simple.  You need to go into your markup and make sure every table has a width set both in the inline STYLE attribute as well as the WIDTH attribute on the TABLE element.
    Outlook 2007 and 2010 are both horrendous at displaying HTML uniformly- as it relies on the Microsoft Word rendering engine.  Most of the time for my clients I tell them that if the end user can read and click links in Outlook then it's a win-- they're used to seeing horrible formatted emails no doubt.  But, if you find most of your email list is using Outlook (corporate/enterprise customers) then you should keep tweaking it. 
    It's impossible to tell from screenshots what the issue is-- it's likely a markup issue if there is one.

  • To maintain UTF-16 characters from a file

    Hello,
    I have a text-file that includes some special characters (UTF-16), I must write a java class that modifies the text, maintaining these special characters. I try with:
    in = new BufferedReader(new InputStreamReader( new FileInputStream("PapersVecchio.txt"), "UTF-16"));
    but the file is bigger than 135 Mb, and with this code the program return:
    java.lang.OutOfMemoryError: Java heap space
    What can I do?
    thanks
    Simone

    These two file have this structure :
    File1:
    <key=109169>conf/ecai/Seel88</key>
         <authors>Nigel R. Seel </authors>
         <title>Modelling Iterated Strategies: A Case Study.</title>
         <journal>ECAI</journal>
         <year>1988</year>
    <key=347449>conf/icsoc/GimpelLDK03</key>
         <authors>Henner Gimpel Heiko Ludwig Asit Dan B. Kearney </authors>
         <title>PANDA: Specifying Policies for Automated Negotiations of Service Contracts.</title>
         <journal>ICSOC</journal>
         <year>2003</year>
    File 2:
    articolo: 1
    Nigel R. Seel
    Modelling Iterated Strategies: A Case Study.
    ECAI
    1988
    articolo: 2
    Henner Gimpel Heiko Ludwig Asit Dan B. Kearney
    PANDA: Specifying Policies for Automated Negotiations of Service Contracts.
    ICSOC
    2003
    I need to put in relation the number "key=347449" with "articolo: 2", ok?

  • Cyrillic characters from MySQL not displaying correctly

    I have a flash file that has a dynamic text link which is taking the data from a MySQL database.  Everything is fine when it is receiving standard characters, but when I try to use Cyrillic characters I just get ???? instead.
    I've tried setting the collation to everything from windows 1251 to UTF8 (and variants).  I've also tried setting the text link to fonts ranging from Arial to Arial CYR, Verdana etc and even embedding the char sets into the file.
    Nothing seems to be working - does anyone have any ideas about what I can do?
    Thanks!!

    .oO(Daniel Sofer)
    >I have a static site in Japanese that is working fine in
    Dreamweaver. I'm
    >trying to add a database connection with php/mysql, but
    the connection between
    >my page and the database is garbling the text (moji bake)
    in both directions.
    You also have to define the connection character set, so the
    data will
    be transfered correctly.
    10.4. Connection Character Sets and Collations
    http://dev.mysql.com/doc/refman/5.0/en/charset-connection.html
    I do this by sending a
    SET NAMES 'utf8'
    to the database right after establishing the connection.
    Additionally
    your server has to send the correct charset parameter to the
    browser.
    In PHP you can achieve this with a header() call:
    header('Content-type: text/html; charset=UTF-8');
    HTH
    Micha

  • How can I get the context-parm from a web.xml file using struts?

    Hello:
    I need get the context-param from the web.xml file of my web project using struts. I want configurate the jdbc datasource connection pooling here. For example:
    <context-param>
    <param-name>datasource</param-name>
    <param-value>jdbc/formacion</param-value>
    <description>Jdbc datasource</description>
    </context-param>
    and then from any Action class get this parameter.
    Similar using a simple server can be:
    /** Initiates new XServlet */
    public void init(ServletConfig config) throws ServletException {
              for (Enumeration e = config.getInitParameterNames(); e.hasMoreElements();) {
                   System.out.println(e.nextElement());
              super.init(config);
              String str = config.getInitParameter("datasource");
              System.out.println(str);
         public void doPost(HttpServletRequest req, HttpServletResponse res)
              throws ServletException, IOException {
              // res.setContentType( );
              System.out.println("Got post request in XServlet");
              PrintWriter out = res.getWriter();
              out.println("nada");
              out.flush();
              out.close();
    but only this works for init-params, if I use
    <servlet>
         <servlet-name>MyServlet</servlet-name>
         <display-name>MyServlet</display-name>
         <servlet-class>myExamples.servlet.MyServlet</servlet-class>
         <init-param>
         <param-name>datasource</param-name>
         <param-value>jdbc/formacion</param-value>
    </init-param>
    </servlet>
    inside my web.xml. I need something similar, but using struts inside the action class for that I can get the context-params and call my database.
    Thank you

    To get context parameters from your web.xml file you can simply get the ActionServlet object from an implementing action object class. In the perform (or execute) method make the following call.
    ServletContext context = getServlet().getServletContext();
    String tempContextVar =
    context.getInitParameter("<your context param >");

  • How to get attribute from xml file

    I managed to grab all the info from xml, except the "url" attribute in <image type="poster" url="" size="mid" .../>. Any ideas?
    import java.io.*;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.List;
    import java.net.*;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import javax.xml.parsers.ParserConfigurationException;
    import org.w3c.dom.Document;
    import org.w3c.dom.Element;
    import org.w3c.dom.NodeList;
    import org.xml.sax.SAXException;
    public class XmlParser {
         ArrayList<Movie> myMovies;
         Document dom;
         public XmlParser(){
              //create a list to hold the movie objects
              myMovies = new ArrayList<Movie>();
         public void runExample(String adr, String tagName) {
              parseXmlFile(adr);
              parseDocument(tagName);
              printData();          
         private void parseXmlFile(String adr){
              //get the factory
              DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
              try {               
                   //Using factory get an instance of document builder
                   DocumentBuilder db = dbf.newDocumentBuilder();
                   //parse using builder to get DOM representation of the XML file
                   URL xmlUrl = new URL(adr);
                   InputStream in = xmlUrl.openStream();
                   dom = db.parse(in);               
              }catch(ParserConfigurationException pce) {
                   pce.printStackTrace();
              }catch(SAXException se) {
                   se.printStackTrace();
              }catch(IOException ioe) {
                   ioe.printStackTrace();
         private void parseDocument(String tagName){
              //get the root elememt
              Element docEle = dom.getDocumentElement();
              //get a nodelist of <movie> elements
              NodeList nl = docEle.getElementsByTagName(tagName);
              if(nl != null && nl.getLength() > 0) {
                   for(int i = 0 ; i < nl.getLength();i++) {
                        //get the movie element
                        Element el = (Element)nl.item(i);
                        //get the Movie object
                        Movie mov = getMovie(el);
                        //add it to list
                        myMovies.add(mov);
          * I take an movie element and read the values in, create
          * an Movie object and return it
          * @param movE
          * @return
         private Movie getMovie(Element movE) {
              String title = getTextValue(movE, "original_name");
              String year = getTextValue(movE, "released");
              String imdbId = getTextValue(movE, "imdb_id");
              double score = getDoubleValue(movE, "score");
              String overview = getTextValue(movE, "overview");
              String poster = movE.getAttribute("url");
              Movie mov = new Movie(title, year, imdbId, score, overview, poster);
              return mov;
         private String getTextValue(Element ele, String tagName) {
              String textVal = null;
              NodeList nl = ele.getElementsByTagName(tagName);
              if(nl != null && nl.getLength() > 0) {
                   Element el = (Element)nl.item(0);
                   textVal = el.getFirstChild().getNodeValue();
              return textVal;
          * Calls getTextValue and returns a int value
          * @param ele
          * @param tagName
          * @return int
         private int getIntValue(Element ele, String tagName) {
              //in production application you would catch the exception
              return Integer.parseInt(getTextValue(ele, tagName));
          * Calls getTextValue and returns a double value
          * @param ele
          * @param tagName
          * @return double
         private double getDoubleValue(Element ele, String tagName) {
              return Double.parseDouble(getTextValue(ele, tagName));
          * Iterate through the list and print the
          * content to console
         private void printData(){
              System.out.println("Total Movies: " + myMovies.size());
              Iterator it = myMovies.iterator();
              while(it.hasNext()) {
                   System.out.println(it.next().toString());
         public static void main(String[] args){
              //create an instance
              XmlParser xp = new XmlParser();
              //call run example
              xp.runExample("http://api.themoviedb.org/2.1/Movie.search/en/xml/apikey/Fight+Club+1999", "movie");
    }Here is the example xml file I used
    <?xml version="1.0" encoding="UTF-8"?>
    <OpenSearchDescription xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
      <opensearch:Query searchTerms="Fight Club 1999"/>
      <opensearch:totalResults>1</opensearch:totalResults>
      <movies>
        <movie>
          <score>8.383284</score>
          <popularity>3</popularity>
          <translated>true</translated>
          <adult>false</adult>
          <language>en</language>
          <original_name>Fight Club</original_name>
          <name>Fight Club</name>
          <alternative_name>El Club de la Lucha</alternative_name>
          <type>movie</type>
          <id>550</id>
          <imdb_id>tt0137523</imdb_id>
          <url>http://www.themoviedb.org/movie/550</url>
          <votes>62</votes>
          <rating>8.4</rating>
          <certification></certification>
          <overview>A lonely, isolated thirty-something young professional seeks an escape from his mundane existence with the help of a devious soap salesman. They find their release from the prison of reality through underground fight clubs, where men can be what the world now denies them. Their boxing matches and harmless pranks soon lead to an out-of-control spiral towards oblivion.</overview>
          <released>1999-09-16</released>
          <images>
            <image type="poster" url="http://hwcdn.themoviedb.org/posters/f75/4bc908ab017a3c57fe002f75/fight-club-original.jpg" size="original" width="1000" height="1500" id="4bc908ab017a3c57fe002f75"/>
            <image type="poster" url="http://hwcdn.themoviedb.org/posters/f75/4bc908ab017a3c57fe002f75/fight-club-mid.jpg" size="mid" width="500" height="750" id="4bc908ab017a3c57fe002f75"/>
            <image type="poster" url="http://hwcdn.themoviedb.org/posters/f75/4bc908ab017a3c57fe002f75/fight-club-cover.jpg" size="cover" width="185" height="278" id="4bc908ab017a3c57fe002f75"/>
            <image type="poster" url="http://hwcdn.themoviedb.org/posters/f75/4bc908ab017a3c57fe002f75/fight-club-thumb.jpg" size="thumb" width="92" height="138" id="4bc908ab017a3c57fe002f75"/>
            <image type="backdrop" url="http://hwcdn.themoviedb.org/backdrops/f71/4bc908ab017a3c57fe002f71/fight-club-original.jpg" size="original" width="1280" height="720" id="4bc908ab017a3c57fe002f71"/>
            <image type="backdrop" url="http://hwcdn.themoviedb.org/backdrops/f71/4bc908ab017a3c57fe002f71/fight-club-poster.jpg" size="poster" width="780" height="439" id="4bc908ab017a3c57fe002f71"/>
            <image type="backdrop" url="http://hwcdn.themoviedb.org/backdrops/f71/4bc908ab017a3c57fe002f71/fight-club-thumb.jpg" size="thumb" width="300" height="169" id="4bc908ab017a3c57fe002f71"/>
          </images>
          <version>73</version>
          <last_modified_at>2010-09-11 14:33:06</last_modified_at>
        </movie>
      </movies>
    </OpenSearchDescription>

    pvujic wrote:
    Thanks, but how can I "fetch" the url from the image element?You've got to first get to the image element. But based on what you've posted though, with a little more coding, you should be able to succeed. Just give it a try! :)

  • How can i extract attributes from XML-file

    Hi!
    I want to extract XML-files.
    And the most tags are no problem,but how can i extract attributes?
    Here is a part from the XML-Schema:
    <xs:complexType name="ATT_LIST">
              <xs:sequence>
                   <xs:element name="ATTRIB" minOccurs="0" maxOccurs="unbounded">
                        <xs:complexType>
                             <xs:sequence>
                                  <xs:element name="VALUE"/>
                             </xs:sequence>
                             <xs:attribute name="ATTNAM" use="required"/>
                        </xs:complexType>
                   </xs:element>
              </xs:sequence>
         </xs:complexType>
    Thanks for help.
    With best regards.
    Nicole

    Hi!
    If i delete one '/' i get the error message:
    data can't be found'
    This is my xml-file:
    <?xml version="1.0" encoding="UTF-8"?>
    <INSOBJ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://sv6:8080/sys/schemas/SCOTT/sv6:8080/public/mydocs/inspection_pda_schema.xsd">
         <INSP_PDA>
              <SYSID>900000438</SYSID>
              <INSPECTOR/>
              <INSDAT>20001223</INSDAT>
              <INSOBJ_TYP>MSP-Mast</INSOBJ_TYP>
              <INSOBJ_ID1>BAM / Bad Aussee / Bad Mitterndorf/Grundlsee</INSOBJ_ID1>
              <INSOBJ_ID2>MITTERNDORF 2 - M 259</INSOBJ_ID2>
              <INSOBJ_ID3>239</INSOBJ_ID3>
              <INSOBJ_NAME>259</INSOBJ_NAME>
              <PDA_PORTION>0000000391</PDA_PORTION>
              <GESQUALITAET/>
              <AUSFALLSEINSCH/>
              <ANMERKUNGEN/>
              <LAGE_NORD>48,2281993</LAGE_NORD>
              <LAGE_OST>14,2394658</LAGE_OST>
              <HOEHE/>
              <GPS_STATUS/>
              <KOORD_SYSTEM/>
              <KOORD_EINHEIT/>
              <PLZ/>
              <ORT/>
              <STR_ORTSTEIL/>
              <NUMMER/>
              <BEZEICHNUNG/>
              <GRUNDBESITZER/>
              <TELENR/>
              <ERREICHBARKEIT/>
              <ATT_LIST>
                   <ATTRIB ATTNAM="BAUWEISE">
                        <VALUE>E-Mast</VALUE>
                   </ATTRIB>
                   <ATTRIB ATTNAM="HOLZART">
                        <VALUE>KIEFER</VALUE>
                   </ATTRIB>
              </ATT_LIST>
              <MZ_LIST>
                   <MAS_ZU MZ_NAM="AUSHOLZEN">
                        <VALUE>J</VALUE>
                        <BEMERKUNG/>
                        <INSP_AM/>
                        <INSP_VON/>
                        <DONE_AM>N</DONE_AM>
                        <DONE_VOM/>
                        <URSACHE>2</URSACHE>
                        <DRINGLICH>2</DRINGLICH>
                        <ZIEL_DAT/>
                        <MZ_PARAM_LIST/>
                   </MAS_ZU>
                   <MAS_ZU MZ_NAM="ALLGEMEIN-ANMERKUNG">
                        <VALUE>2 Isolatoren</VALUE>
                        <BEMERKUNG/>
                        <INSP_AM/>
                        <INSP_VON/>
                        <DONE_AM/>
                        <DONE_VOM/>
                        <URSACHE>2</URSACHE>
                        <DRINGLICH/>
                        <ZIEL_DAT/>
                        <MZ_PARAM_LIST/>
                   </MAS_ZU>
                   <MAS_ZU MZ_NAM="Stange erdfaul/hohl">
                        <VALUE>J</VALUE>
                        <BEMERKUNG/>
                        <INSP_AM/>
                        <INSP_VON/>
                        <DONE_AM/>
                        <DONE_VOM/>
                        <URSACHE/>
                        <DRINGLICH/>
                        <ZIEL_DAT/>
                        <MZ_PARAM_LIST/>
                   </MAS_ZU>
                   <MAS_ZU MZ_NAM="Masttyp nicht normgerecht">
                        <VALUE>J</VALUE>
                        <BEMERKUNG/>
                        <INSP_AM/>
                        <INSP_VON/>
                        <DONE_AM/>
                        <DONE_VOM/>
                        <URSACHE/>
                        <DRINGLICH/>
                        <ZIEL_DAT/>
                        <MZ_PARAM_LIST/>
                   </MAS_ZU>
              </MZ_LIST>
         </INSP_PDA>
         <INSP_PDA>
              <SYSID>900000437</SYSID>
              <INSPECTOR/>
              <INSDAT>20001223</INSDAT>
              <INSOBJ_TYP>MSP-Mast</INSOBJ_TYP>
              <INSOBJ_ID1>BAM / Bad Aussee / Bad Mitterndorf/Grundlsee</INSOBJ_ID1>
              <INSOBJ_ID2>MITTERNDORF 2 - M 259</INSOBJ_ID2>
              <INSOBJ_ID3>239</INSOBJ_ID3>
              <INSOBJ_NAME>259</INSOBJ_NAME>
              <PDA_PORTION>0000000391</PDA_PORTION>
              <GESQUALITAET/>
              <AUSFALLSEINSCH/>
              <ANMERKUNGEN/>
              <LAGE_NORD>48,2281993</LAGE_NORD>
              <LAGE_OST>14,2394658</LAGE_OST>
              <HOEHE/>
              <GPS_STATUS/>
              <KOORD_SYSTEM/>
              <KOORD_EINHEIT/>
              <PLZ/>
              <ORT/>
              <STR_ORTSTEIL/>
              <NUMMER/>
              <BEZEICHNUNG/>
              <GRUNDBESITZER/>
              <TELENR/>
              <ERREICHBARKEIT/>
              <ATT_LIST>
                   <ATTRIB ATTNAM="BAUWEISE">
                        <VALUE>E-Mast</VALUE>
                   </ATTRIB>
                   <ATTRIB ATTNAM="HOLZART">
                        <VALUE>KIEFER</VALUE>
                   </ATTRIB>
              </ATT_LIST>
              <MZ_LIST>
                   <MAS_ZU MZ_NAM="AUSHOLZEN">
                        <VALUE>J</VALUE>
                        <BEMERKUNG/>
                        <INSP_AM/>
                        <INSP_VON/>
                        <DONE_AM>N</DONE_AM>
                        <DONE_VOM/>
                        <URSACHE>2</URSACHE>
                        <DRINGLICH>2</DRINGLICH>
                        <ZIEL_DAT/>
                        <MZ_PARAM_LIST/>
                   </MAS_ZU>
                   <MAS_ZU MZ_NAM="ALLGEMEIN-ANMERKUNG">
                        <VALUE>2 Isolatoren</VALUE>
                        <BEMERKUNG/>
                        <INSP_AM/>
                        <INSP_VON/>
                        <DONE_AM/>
                        <DONE_VOM/>
                        <URSACHE>2</URSACHE>
                        <DRINGLICH/>
                        <ZIEL_DAT/>
                        <MZ_PARAM_LIST/>
                   </MAS_ZU>
                   <MAS_ZU MZ_NAM="Stange erdfaul/hohl">
                        <VALUE>J</VALUE>
                        <BEMERKUNG/>
                        <INSP_AM/>
                        <INSP_VON/>
                        <DONE_AM/>
                        <DONE_VOM/>
                        <URSACHE/>
                        <DRINGLICH/>
                        <ZIEL_DAT/>
                        <MZ_PARAM_LIST/>
                   </MAS_ZU>
                   <MAS_ZU MZ_NAM="Masttyp nicht normgerecht">
                        <VALUE>J</VALUE>
                        <BEMERKUNG/>
                        <INSP_AM/>
                        <INSP_VON/>
                        <DONE_AM/>
                        <DONE_VOM/>
                        <URSACHE/>
                        <DRINGLICH/>
                        <ZIEL_DAT/>
                        <MZ_PARAM_LIST/>
                   </MAS_ZU>
              </MZ_LIST>
         </INSP_PDA>
    </INSOBJ>
    Thanks for help.
    With best regards
    Nicole

  • How can I get the example fonts from the font file Programmatically?

    Hi Friends,
             I am doing one mac application for the fonts management. Now I would like to Preview the Font in the NSTextView.  This is my coding for the textView.
        NSTextView *text3=[[NSTextView alloc]initWithFrame:NSMakeRect(250,500,450,30)];
        [text3 setString:@"ABCDEFGHIJKLMNOPQRSTUVWXYZ"];
        [text3 setFont:[NSFont fontWithName:@"GangofThree" size:40]];
        [[[self window] contentView] addSubview:text3];
    Because I have set the string in English for the NSTextView I can't able to view the other languages characters.I got the character set of the font file by using this code.
       NSCharacterSet *characterset = (NSCharacterSet *) CTFontCopyCharacterSet (fontRef);
    This Font is greek font.Now My question is how can I able to get the greek characters from this characterset.

    Your text string would certainly have to be in Greek itself, not Latin.  No normal font just translates Latin letters to Greek, they use other codepoints reserved for Greek letters.

  • How can i get the source code from java concurrent program in R12

    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    Zulqarnain

    user570667 wrote:
    Hi 2 all,
    How can i get the source code from java concurrent program in R12? like , "AP Turnover Report" is java concurrent program, i need to get its source code to know its logic. how can i get its source code not the XML template?
    Regards,
    ZulqarnainDid you see old threads for similar topic/discussion? -- https://forums.oracle.com/forums/search.jspa?threadID=&q=Java+AND+Concurrent+AND+Source+AND+Code&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • No Mail. I can not get or send mail from my iPhone,iCloud, or mail  on the desktop. Password is correct i can get into iCloud but not able to get mail.

    I can not get or send mail from my iPhone, iCloud, and desktop mail.  All are the same account, password is right and working. When the problem first happened I updated to a new  password.
    The Mail and the phone are telling me ( "The iCloud IMAP server “p99-imap.mail.me.com” rejected the password for user “k****n******2”}
    From the iCloud account i get a message saying  mail could not be loaded and the details. Which i have copyed below.
    Any thoughts or anyone I can ring ? This was a paid for mobile me account.
    Thanks
    Running 10.72
    ORIGIN
    server
    TYPE
    error
    BUILDNUMBER
    1FCS29.34215
    TIME
    Sun Dec 11 2011 10:49:50 GMT+0000 (GMT)        (1323600590380)
    HOST
    www.icloud.com
    USERAGENT
    Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.52.7 (KHTML, like Gecko) Version/5.1.2 Safari/534.52.7
    PRSID
    217870346
    RECENTLOGMESSAGES
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: MAIL in main()
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: -->  Request 1:   POST to https://p99-mailws.icloud.com:443/wm/preference,  headers: Content-Type=text/plain,  body: (omitted)
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: Request out: /wm/preference-list-->1323600562085/1
              params: {"locale":"en-us","timeZone":"Europe/Dublin"}
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: SC.Object:sc1074:dispatch('load content')
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: "2.0 Waiting for Content" handled event 'load content' (no transition)
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: SC.Module: Attempting to load 'addresses'
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: SC.Module: Module 'addresses' is not loaded, loading now.
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: SC.Module: Loading JavaScript file in 'addresses' -> '/applications/mail/frameworks/addresses/en-us/1FCS29/javascript.js'
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: SC.Object:sc3099:initStatechart()
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: -> entering "9 Address List Not Visible"
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: -->  Request 2:   GET to https://p03-contactsws.icloud.com:443/co/addressbook/?order=first,last&locale=en _US,  headers: Content-Type=text/plain,  body: (omitted)
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: SC.Module: Module 'addresses' finished loading.
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: SC.Module: Evaluating and invoking callbacks for 'addresses'.
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: SC.Module: Module 'addresses' has completed loading, invoking callbacks.
    Sun, 11 Dec 2011 10:49:22 GMT:  DEBUG: APPLICATION: Received applicationWillBecomeActive
    Sun, 11 Dec 2011 10:49:23 GMT:  WARN:  APPLICATION: Received applicationDidBecomeActive
    Sun, 11 Dec 2011 10:49:23 GMT:  DEBUG: <--  Response 2:  200  (1257ms),  headers: Cache-Control=no-cache, no-store, private, Content-Type=application/json; charset=UTF-8  body: (omitted)
    Sun, 11 Dec 2011 10:49:25 GMT:  DEBUG: willReceive: Status:500, Request:/wm/preference
    Sun, 11 Dec 2011 10:49:25 GMT:  DEBUG: Got HTTP 500 : Redirecting request: /wm/preference : Redirect count:1
    Sun, 11 Dec 2011 10:49:25 GMT:  DEBUG: -->  Request 3:   POST to https://p99-mailws.icloud.com:443/wm/preference,  headers: Content-Type=text/plain,  body: (omitted)
    Sun, 11 Dec 2011 10:49:25 GMT:  DEBUG: Request out: /wm/preference-list-->1323600562085/1
              params: {"locale":"en-us","timeZone":"Europe/Dublin"}
    Sun, 11 Dec 2011 10:49:29 GMT:  DEBUG: willReceive: Status:500, Request:/wm/preference
    Sun, 11 Dec 2011 10:49:29 GMT:  DEBUG: Got HTTP 500 : Redirecting request: /wm/preference : Redirect count:2
    Sun, 11 Dec 2011 10:49:29 GMT:  DEBUG: -->  Request 4:   POST to https://p99-mailws.icloud.com:443/wm/preference,  headers: Content-Type=text/plain,  body: (omitted)
    Sun, 11 Dec 2011 10:49:29 GMT:  DEBUG: Request out: /wm/preference-list-->1323600562085/1
              params: {"locale":"en-us","timeZone":"Europe/Dublin"}
    Sun, 11 Dec 2011 10:49:33 GMT:  DEBUG: willReceive: Status:500, Request:/wm/preference
    Sun, 11 Dec 2011 10:49:33 GMT:  DEBUG: Got HTTP 500 : Redirecting request: /wm/preference : Redirect count:3
    Sun, 11 Dec 2011 10:49:33 GMT:  DEBUG: -->  Request 5:   POST to https://p99-mailws.icloud.com:443/wm/preference,  headers: Content-Type=text/plain,  body: (omitted)
    Sun, 11 Dec 2011 10:49:33 GMT:  DEBUG: Request out: /wm/preference-list-->1323600562085/1
              params: {"locale":"en-us","timeZone":"Europe/Dublin"}
    Sun, 11 Dec 2011 10:49:37 GMT:  DEBUG: willReceive: Status:500, Request:/wm/preference
    Sun, 11 Dec 2011 10:49:37 GMT:  DEBUG: Got HTTP 500 : Redirecting request: /wm/preference : Redirect count:4
    Sun, 11 Dec 2011 10:49:37 GMT:  DEBUG: -->  Request 6:   POST to https://p99-mailws.icloud.com:443/wm/preference,  headers: Content-Type=text/plain,  body: (omitted)
    Sun, 11 Dec 2011 10:49:37 GMT:  DEBUG: Request out: /wm/preference-list-->1323600562085/1
              params: {"locale":"en-us","timeZone":"Europe/Dublin"}
    Sun, 11 Dec 2011 10:49:40 GMT:  DEBUG: willReceive: Status:500, Request:/wm/preference
    Sun, 11 Dec 2011 10:49:40 GMT:  DEBUG: Got HTTP 500 : Redirecting request: /wm/preference : Redirect count:5
    Sun, 11 Dec 2011 10:49:40 GMT:  DEBUG: -->  Request 7:   POST to https://p99-mailws.icloud.com:443/wm/preference,  headers: Content-Type=text/plain,  body: (omitted)
    Sun, 11 Dec 2011 10:49:40 GMT:  DEBUG: Request out: /wm/preference-list-->1323600562085/1
              params: {"locale":"en-us","timeZone":"Europe/Dublin"}
    Sun, 11 Dec 2011 10:49:44 GMT:  DEBUG: willReceive: Status:500, Request:/wm/preference
    Sun, 11 Dec 2011 10:49:44 GMT:  DEBUG: <--  Response 7:  500  (4248ms),  headers: Content-Type=text/html  body: (empty)
    Sun, 11 Dec 2011 10:49:44 GMT:  DEBUG: Request in: /wm/preference-list-->1323600562085/1,500,4249ms
    Sun, 11 Dec 2011 10:49:44 GMT:  DEBUG: ServerPreferencesDataSource.retrieveResponse error = -1/500/guid=serverPrefsGuid
    Sun, 11 Dec 2011 10:49:44 GMT:  ERROR: CoreMail handled error 13002 before exiting Mail

    Spent at least 40 min talking to apple support, to sort it out. luckly not at my cost. After trying lots of things and speaking to a higher grade support person I was given a temp password which did the trick. I then was able to reset that with my own password. 
    The impression i got was no one knowns  what the problem is and resetting the password at the apple end works. Not sure if you would be able to self fix.

  • HT203180 I am a new user. I have created iPad versions of videos, but I can't get them to synch from my iMac to my IPad

    I am a new user. I have created iPad versions of videos, but I can't get them to synch from my iMac to my IPad. I have consulted the Help section, but the videos do not appear in the iTunes library as movies.

    Pad2, the new iPad Supported Video Formats & Movie Formats
    H.264 video up to 1080p, 30 frames per second, High Profile level 4.1 with AAC-LC audio up to 160 Kbps, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
    MPEG-4 video up to 2.5 Mbps, 640 by 480 pixels, 30 frames per second, Simple Profile with AAC-LC audio up to 160 Kbps per channel, 48kHz, stereo audio in .m4v, .mp4, and .mov file formats;
    Motion JPEG (M-JPEG) up to 35 Mbps, 1280 by 720 pixels, 30 frames per second, audio in ulaw, PCM stereo audio in .avi file format
    You can use a USB flash drive & the camera connection kit to import the videos.
    Plug the USB flash drive into your computer & create a new folder titled DCIM. Then put your movie/photo files into the folder. The files must have a filename with exactly 8 characters long (no spaces) plus the file extension (i.e., my-movie.mov; DSCN0164.jpg).
    Now plug the flash drive into the iPad using the camera connection kit. Open the Photos app, the movie/photo files should appear & you can import. (You can not export using the camera connection kit.)
    Secrets of the iPad Camera Connection Kit
    http://howto.cnet.com/8301-11310_39-57401068-285/secrets-of-the-ipad-camera-conn ection-kit/
     Cheers, Tom

  • Get repeated data from XML File

    Hello,
    I have created one SSIS package to fetch the data from XML file.[I have used XML Source in Data flow task]
    While doing the same i have used the "Generate XSD" option to generate XSD file automatically.
    XSD file is as follows -
      <xs:element name="Collage">
        <xs:complexType>
          <xs:sequence>
            <xs:element minOccurs="0" name="Class" type="xs:string" />
            <xs:element minOccurs="0" name="Division" type="xs:string" />
            <xs:element minOccurs="0" name="CollageDetail">
              <xs:complexType>
                <xs:sequence>
                  <xs:element minOccurs="0" maxOccurs="unbounded" name="Studients">
                    <xs:complexType>
                      <xs:sequence>
                        <xs:element minOccurs="0" name="StudentID" type="xs:string" />
                        <xs:element minOccurs="0" name="StudentName" type="xs:string" />
                      </xs:sequence>
                    </xs:complexType>
                  </xs:element>
                </xs:sequence>
              </xs:complexType>
            </xs:element>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    My Table Information is as follows
    Class
    Devision
    StudentID
    StudentName
    BE
    A
    A101
    Tom
    BE
    A
    A102
    Jack
    BE
    A
    A103
    John
    Problem - In the "column" tab of the "XML source" i am not able to see the information of "class" and "Division". [these two columns data is repeating in every row
    I am able to see only two option in "Outout Name" Dropdown in "Column" Tab.i.e  "Studients" and "CollageDetail"
    Student is having two column [StudentID,StudentName] and CollageDetail is having only one column[CollageDetail_ID]
    I am not able to see "Collage","Division" Information XML Source.
    Could you please suggest me what i have make changes to get "Class","Division" information from "XML Source".
    Thank You. 

    Thanks for the reply,
    i tried add
    maxOccurs="unbounded" in the XSD file, I am able to see the Class and division option in
     "Outout Name" Dropdown.  but i am getting NULL value for the Class
    and division  column.
    Still i am not able to get top level attribute.Kindly suggest me for the same.
    XML file content is as follows.
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:Collage xmlns:ns0="http://www.W3.com/schema/Collage.xsd">
    <ns0:Class>BE</ns0:Class>
    <ns0:Division>A</ns0:Division>
    <ns0:CollageDetail>
    <ns0:Studients>
    <ns0:StudentID>A101</ns0:StudentID>
    <ns0:StudentName>Tom</ns0:StudentName>
    </ns0:Studients>
    <ns0:Studients>
    <ns0:StudentID>A102</ns0:StudentID>
    <ns0:StudentName>Jack</ns0:StudentName>
    </ns0:Studients>
    <ns0:Studients>
    <ns0:StudentID>A103</ns0:StudentID>
    <ns0:StudentName>John</ns0:StudentName>
    </ns0:Studients>
    </ns0:CollageDetail>
    </ns0:Collage>
    I would like to get all the XML data in below format [single set , not in part].Kindly suggest me for the same.
    Table data
    Class
    Devision
    StudentID
    StudentName
    BE
    A
    A101
    Tom
    BE
    A
    A102
    Jack
    BE
    A
    A103
    John

Maybe you are looking for