Results 1 to 2 of 2

Thread: \n problem

  1. #1
    Rachna is offline Member
    Join Date
    Jan 2008
    Posts
    1
    Rep Power
    0

    Default \n problem

    Hi
    I am getting \n from database but i want to post it to xsl through xml
    but its there but cant be seen .Is there any way in java or javascript through which i can c the invisible character

    Thanks
    Rachna

  2. #2
    GVD
    GVD is offline Member
    Join Date
    Jan 2008
    Posts
    5
    Rep Power
    0

    Default

    public static void main (String args[]) {

    String str;
    str = "\ntest\n";

    System.out.println("");
    System.out.println("string with \\n characters: " +str+" end");

    str = str.replace("\n", "");

    System.out.println("");
    System.out.println("now it is removed: " +str+" end");

    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •