Delimited Character for NewLine

Hi....
I am using InDesign CS3. I got a problem when placing a "\n" in the text value in an attribute. When I open to edit the text in an attribute through double clicking the attribute, the text box inside the edit windows doesn't show me the new line.
If I copy the text from the textbox to a notepad, it can slow me the new line. I think the problem is the textbox doesn't recognise the "\n" as a new line.
Because of all content will be output as XML and other system will use this XML too. Is there any method to let the InDesign know "\n" is a new line?
Thanks
Chris

A random test: pressing Ctrl+Enter (on a Windows machine) inserts a visible return in the input dialog. What ends up in the XML? Well, let's see:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Root><Tag1>Sed ut <Tag2
attr="a newline&#xd;&#xa;character?">dolores</Tag2> eos qui ratione voluptatem sequi nesciunt.</Tag1></Root>
I suppose your program that processes the XML has to do the proper recognizing of ampersand-escaped codes in attributes.

Similar Messages

  • Using Escape character for Multi character delimiter for flat files in IKM

    Hi
    I have an IKM using Jython, it is working fine for single character delimiter. But as per requirement I have to use multicharacter delimiter ;" (semi colon and double quotes).
    I am taking this into variable using
    filesep = "<%=snpRef.getSrcTablesList("", "[SFILE_SEP_FIELD]", "", "")%>"
    but it is giving lexical error.
    Can anybody help me with the use of escape character in current scenario?
    Any other suggestions are also appreciated.
    Thanks
    Ankit

    Hello,
    A small tweak may solve your problem:
    Instead of :
    CONCATENATE wa_condstr ' bukrs = ' pa_bukrs INTO wa_condstr SEPARATED BY space.
    Use:
    CONCATENATE wa_condstr ' bukrs = ' 'PA_BUKRS' INTO wa_condstr SEPARATED BY space.
    Then use this in SELECT.
    Anyways for your answer the escape character for apostrophe is an apostrophe )
    Try this you will understand:
    DATA:
    V_STR TYPE STRING VALUE ''''.
    WRITE: V_STR.
    BR,
    Suhas

  • Common delimiter character in Java

    Can someone please tell me what is the most common delimiter character (except "\n", "\t", " ", etc. )used in Java?? Thank you.

    Because it is impossible to answer in any meaningful way. People use diferent delimters for direcrent things, and its nothing to do with the language as such.
    If you asked what is the most commonly used delimeter in text files, its certainly '\n' or '\r\n', depending on which side of the blanket you were born.
    Data files written in ascii are often delimited by commas, (the so-called CSV format). If you count all whitespace characters, including space (HEX 20), then clearly this is THE most popular delimeter, as we use it to separate works, in all forms of document.
    But none of this is java-related.
    I hope this helps. If not, try rephrasing your question. :)

  • Urgent + Search a delimited file for more then one string

    Hi All
    Urgent please help I am trying to search a file for 2 different strings.
    This is how the command prompt will look like
    java match "-t|" -4 -f Harvey -10 -f Atlanta callbook.txtPlease help me with identifying how many search criterias have been entered on command prompt.
    "-t|" - denotes a delimiter
    -4 - denotes the field number
    -f - case sensitive
    Thanks

    Hi
    Thanks for your quick response and I apologise I will never put urgent on my posting again.
    C:\>java match "-t|" -4 -f Harvey -10 -f Atlanta callbook.txt
    This example lists records for Atlanta with first name Harvey.
    I am able to get one search criteria but when I have 2 as above (Harvey and Atlanta) I get lost I do not know how to get these arguments from the commandline and still do a search correctly. My code at the moment is doint a hard coded search so I was trying to extract the arguments that's where I got stuck.
    The main aim of my app is to search a delimited file for a search criteria passed through a command prompt.
    This is what I have done so far.
    import  java.io.*;
    import java.util.*;
    public class assess1
        static public void main(String args[])
            int[] totals = new int[10];
            try
                BufferedReader inFile = new BufferedReader(new FileReader(args[0]) );
                try
                    String line;
              String StrSearch = "HARVEY";
              int counter = 0;
                    boolean foundIt = false;
                    while((line = inFile.readLine()) != null)
                     // search for the string
                      String[] values = line.split("\\|");
                       for (String str : values) {
                   if (str.equals("HARVEY")) {
                               System.out.println(line);
                             System.out.println();
                        counter++;
              if (counter == 0) {
                   System.out.println("String not found");
              inFile.close();
                catch(IOException e)
                    System.err.println("IO exception");
                    System.exit(1);
                catch(NumberFormatException e)
                    System.err.println("Value " + e.getMessage() + "not numeric");
            catch(FileNotFoundException e)
                System.err.println( "Couldn't open " + e.getMessage() );
                System.exit(1);
    }

  • Is there a Special Character for the number of pages in a document?

    I'm creating a template (in cs6) for a series of documents of variable length, and each document needs to be numbered with the format, "page A of Z." I see the special character for inserting the current page number (A) and I'd like to have the number of pages in the document (Z) added automatically as well. Is there a wildcard, special character, or script that will accomplish this? I'd rather not have to enter the number of pages manually as the value will change as these go through the editing process; I'd prefer to have the numbers update automatically. Has anybody done this before?

    Your first suggestion is the only way to capture the last page of a book that's comprised of independent document files. The last page number text variable works only within a single document.
    Anyone who wants a last page in book text variable badly enough can post a feature request at Wishform.
    HTH
    Regards,
    Peter
    Peter Gold
    KnowHow ProServices    
    Arïel wrote:
    Stop press!
    You can also, much more simply, create a new text variable. There is
    specifically one for "last page number". That's much simpler.
    Type>Text Variables>Define>New, and in the Type dropdown just select
    "last page number".
    ariel

  • Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 3 (NumberOfMultipleMatches).

    Hi,
    I have a file where fields are wrapped with ".
    =========== file sample
    "asdsa","asdsadasdas","1123"
    "asdsa","asdsadasdas","1123"
    "asdsa","asdsadasdas","1123"
    "asdsa","asdsadasdas","1123"
    ==========
    I am having a .net method to remove the wrap characters and write out a file without wrap characters.
    ======================
    asdsa,asdsadasdas,1123
    asdsa,asdsadasdas,1123
    asdsa,asdsadasdas,1123
    asdsa,asdsadasdas,1123
    ======================
    the .net code is here.
    ========================================
    public static string RemoveCharacter(string sFileName, char cRemoveChar)
                object objLock = new object();
                //VirtualStream objInputStream = null;
                //VirtualStream objOutStream = null;
                FileStream objInputFile = null, objOutFile = null;
                lock(objLock)
                    try
                        objInputFile = new FileStream(sFileName, FileMode.Open);
                        //objInputStream = new VirtualStream(objInputFile);
                        objOutFile = new FileStream(sFileName.Substring(0, sFileName.LastIndexOf('\\')) + "\\" + Guid.NewGuid().ToString(), FileMode.Create);
                        //objOutStream = new VirtualStream(objOutFile);
                        int nByteRead;
                        while ((nByteRead = objInputFile.ReadByte()) != -1)
                            if (nByteRead != (int)cRemoveChar)
                                objOutFile.WriteByte((byte)nByteRead);
                    finally
                        objInputFile.Close();
                        objOutFile.Close();
                    return sFileName.Substring(0, sFileName.LastIndexOf('\\')) + "\\" + Guid.NewGuid().ToString();
    ==================================
    however when I run the bulk load utility I get the error 
    =======================================
    Bulk load data conversion error (type mismatch or invalid character for the specified codepage) for row 1, column 3 (NumberOfMultipleMatches).
    ==========================================
    the bulk insert statement is as follows
    =========================================
     BULK INSERT Temp  
     FROM '<file name>' WITH  
      FIELDTERMINATOR = ','  
      , KEEPNULLS  
    ==========================================
    Does anybody know what is happening and what needs to be done ?
    PLEASE HELP
    Thanks in advance 
    Vikram

    To load that file with BULK INSERT, use this format file:
    9.0
    4
    1 SQLCHAR 0 0 "\""      0 ""    ""
    2 SQLCHAR 0 0 "\",\""   1 col1  Latin1_General_CI_AS
    3 SQLCHAR 0 0 "\",\""   2 col2  Latin1_General_CI_AS
    4 SQLCHAR 0 0 "\"\r\n"  3 col3  Latin1_General_CI_AS
    Note that the format file defines four fields while the fileonly seems to have three. The format file defines an empty field before the first quote.
    Or, since you already have a .NET program, use a stored procedure with table-valued parameter instead. I have an example of how to do this here:
    http://www.sommarskog.se/arrays-in-sql-2008.html
    Erland Sommarskog, SQL Server MVP, [email protected]

  • Escape character for apostrophe ' in JDBC receiver channel

    Hi all,
    We have Proxy to JDBC scenario in our project. This interface is working fine with unicode data but when there is an apostrophe( ' ) coming in any of the field values ( ex: DOWTHERM 'J' MODEL19QAGB1G ) , the message is failing in receiver JDBC channel.
    can anyone please tell us how to handle single quote in JDBC receiver channel.
    I have read in SAP help documentation that apostrophe is a reserved character in SQL syntax and is therefore replaced by an escape character if it occurs within value strings. There is a option to JDBC receiver communication channel under "SQL SYNTAX PARAMETER"  to specify the escape character for apostrophe.
    Can any please tell us which value needs to be maintained in the channel to avoid this error.
    Regards
    Jagruthi

    Hi Prateek,
    Thanks a lot for you inputs.
    This issue is solved now. We have replaced single quote with two single quotes and then did the hasQuote mapping as described in the blog.
    /people/prateek.srivastava3/blog/2009/04/02/unicode-handling-for-ms-sql-server
    No value needs to be maintained in channel(SQL SYNTAX PARAMETER ).
    But just want to understand  the difference between replacing the ' with '' in mapping and using SQL SYNTAX PARAMETER option in communication channel.
    Both should ideally result in same  output. But it didnu2019t work when we tried with two single quotes in SQL SYNTAX PARAMETER (Escape Symbol for Apostrophe) in communication channel without doing anything in mapping.
    Regards
    Jagruthi

  • Cant save a character for later use in cs 4 (want to use in other projects)

    I am planning on making a character for a project and other projects but my "TEST DUMMY" couldn't be saved i made him a symbol and looked in the library, i loaded new project after restating flash and he wasn't in the library! (i did not save changes to the project someone told me saving it screws things up in cs 4)
    P.S: What is a good HD resolution?

    Ok i found out how so yes i do have to save changes to that place but to get in another projcet i kneed to go to File/Import/open external lybrary/file name/symbole name and then that works

  • Display special character for 'Artihmetic mean'

    I can't find the character for 'Arthmetic mean', it's 'x' with a line above, any ideas!?
    I've searched several font (Symbol, Wingdings etc) but didn't found that special character...!

    Oh, I do apologise. I saw the character on wiki and assumed it was a character, rather than a graphic.
    Usually, to create interesting unicode characters, you can combine diacritics. For instance, xbar is X followed by ¯;

     (might not display on unsupported browsers)
    However LabVIEW doesn't support this, and will print x ¯ and I can't find any info on how else it might be implemented.
    You might be able to find a hack in this document
    And in the meantime, you can kudo this suggestion
    - Cheers, Ed

  • Field is missing an escape character for a quote

    Hello ,
    any solution for below error in SSIS.
    Field is missing an escape character for a quote.Unable to update PK WHERE clause.Error processing data batch.
    i tried with convert tool. I ignored that column but still i am facing same error.
    Regards,
    Akshay Adivarekar
    Akshay Adivarekar

    "Field is missing an escape character for a quote.Unable to update PK WHERE clause.Error processing data batch."
    this is the error which i am getting in ssis.
    I am trying to pull data form SAP to SQL sqrver 2012 using SSIS 2012.
    I am using ado.net connector for SAP , Control flow Task.
    I tried with Convert task with dt_str datatype  but its not helping me ,
    even  i ignored that column but still i am facing same error. 
    Actually  sometimes it works properly but sometimes  get error.
    Akshay Adivarekar
    Akshay Adivarekar

  • Delimiter character in Java

    Can someone please tell me what is the most common and best delimiter character (or string)(except "\n", "\t", " ", etc. )used in Java?? Thank you.

    Probably because no-one has a clue what you want to know.

  • Regular Expression to Search Comma Delimited File for any of 3 Values

    Hi,
    I'd like to parse a table column that contains a comma delimited string for any of 3 values, 1200, 1400, 1600 just to see if they're present using Regexp_instr. If someone has an expression available please pass it along.
    Thanks,
    Victor

    Or you could do it like this too...
    SQL> ed
    Wrote file afiedt.buf
      1  with t as (select 1 as id, '1000,2000,3000' as txt from dual union all
      2             select 2, '1200,1300,1400' from dual union all
      3             select 3, '1000,1300,1600' from dual)
      4  -- end of test data
      5  select *
      6  from t
      7* where regexp_like(txt,'(^|,)(1200|1400|1600)(,|$)')
    SQL> /
            ID TXT
             2 1200,1300,1400
             3 1000,1300,1600

  • Keychain showing different character for the password

    Hi just wanted to ask why my keychain is showing different character for my password in my AIM and Yahoo account? When i mark the show password its show plenty of letters but not the one i am really using. How can i show the right one?

    Hi Irvin,
    If you see a crazy corrupt password, I'd delete that item, ythen login yo AIM or Yahoo again to create a new one, unless you don't remember your PW, then try Keychain First Aid under the Window Menu item, then either check the Password under that item, change it, or delete it and start over.
    Resetting your keychain in Mac OS X...
    If Keychain First Aid finds an issue that it cannot repair, or if you do not know your keychain password, you may need to reset your keychain.
    http://support.apple.com/kb/TS1544

  • Whats the limitations character for email signature for iphone?

    I wonder whats the limitations character for email signature for iphone? if anyone can help... thanks

    Please provide more detail of what it is you need to know and why?

  • 0CHRT_ACCTS as compounding character for 0GLACCEXT

    Hi experts,
    I want to define 0GLACCEXT as a navigational attribute of 0GL_ACCOUNT.
    Because I wanna use its hierarchy in reports.
    0GL_ACCOUNT has 0CHRT_ACCTS as compounded characteristic. Example : Chrt Acct= INT, GL Account: 110000
    Should I also define 0CHRT_ACCTS as compounding character for 0GLACCEXT.
    If yes, should I fill it during extraction from 0gl_account_text  ?
    Or
    Will it be filled already during extraction from 0gl_account_hier ?
    Thnx.

    Hi,
    No you dont need to define 0GLACCEXT as a compounding of 0CHRT_ACCTS .
    Regards,
    Amol

Maybe you are looking for

  • Trouble using OSX 10.4.7 & .8 on iMac 24" (Core 2 Duo 2.16GHz)

    If I choose Russian Interface and try to print from almost any application to network printer connected via AppleTalk or IP or as Windows printer, Application crashes after pressing button Print ("Напечатать...") Here is the dump of TextEdit Date/Tim

  • WiFi or Ethernet do not work!

    I Have a Macbook and the Wi Fi or Ethernet will not work. I renew DHCP lease and the internet works for 10 seconds than I have to renew it again. I have 2 more Macs and they work fine. I have two routers and this computer has the same problem with bo

  • Linking Lifeblog to Contacts on the N70

    Hi I am running Lifeblog 1.7 on my N70. I have been sending and receiving texts and taking pictures on it since before Xmas, so the database has built up to a reasonable size. But I only very recently got round to synching my Contacts onto the phone.

  • Front face camera won't work for pictures. But it works perfectly on FaceTime, any way of fixing this?

    Front face camera won't work for pictures. But it works perfectly on FaceTime, any way of fixing this? When I try and change the camera to face front it acts like it's going to change then kind of freezes and won't let me change back to the back came

  • HT5312 How to reset security question..pls help Me

    hello I cant remember my answers to security questions and i cant reset  it! i see the helps and learning in web but not working! please help Me Thanks a lot