What is the different  between System.out.println and out.print

we move a project , jsp form to servlet to mysql db
suddenly we get Chinese input problem
on meantime only Thing I know is
if( chineseName!=null) {
                       chineseName= new String( chineseName.getBytes("ISO-8859-1"),"UTF-8");
                     out.print(chineseName); //display Chinese
                      System.out.println("Hello1"+chineseName ); // display unread symbol
             }I don't know why when we insert the value into db by StudentInsert(university_ID, surName, english_Name, chineseName, Address)
the db get the value from System.out.println
what setting decide my out put through System.out.println

Thank you for the reply!
after two days of search and guess.... I found out
for Web application , which under glassfish , you need to put your jsp page under WEB-INF,
other wise the server jsp turn your Chinese character that come from jsp request form to UTF8 symbol.
not ideal how to change the configuration in glassfish yet!

Similar Messages

  • What is the different between payment methods Wire and EFT

    Hi All
    can anybody tell me What is the different between payment methods Wire and EFT ?
    Regards ;

    WIRE:
    Wire is transfer of amount due directly to the supplier's bank it is an electronic transfer of funds
    This mode of payment is used for international suppliers.
    It can be paid in foreign currency or USD.
    Wire payments are same day payments.
    EFT:
    EFT ensures funds transfer from one bank account to another using electronic links.
    Can be used to make payments into domestic banks (within US) in USD only.
    It is faster than check payments.
    Hope this helps.

  • What is the different between Oracle Process Manuf and Oracle Discrete Manufatur in oracle?

    Dear What is the different between Oracle Process Manufacturing and Oracle Descret Manufacturing in Oracle?

    Hi Elad,
       Depending on the requirement and the availability we go with implementing a particular database.
    For xi point of view there is no difference between oracle and SQL database. However you need to intall the drivers of SQL.
    Even there is no difference in the communication channel configuration.
    Reward points if found helpful.
    Thanks & Regards,
    Bharath.

  • What is the different between MacBookAir MD711ID/A and MD711ZA/A?

    What is the different between MacBookAir MD711ID/A and MD711ZA/A? Is it only the OS? Or is there any other different specification? Thank you.

    No, there isn't. There isn't a difference in the OS either; if they shipped with different OS versions, it's because of the passage of time and not them being from different countries.
    (103730)

  • Whats is the different between iphone sim free and international(unlocked)??

    Greetings sir,
    whats is the different between iPhone sim free and international (unlocked)?? as i want to buy anew one from USA, but i didn't found it international, so can i buy it (SIM free) and will it work in Egypt?

    Apple has not announced when or if it will be offering unlocked iPhone 6 in the U.S.

  • What is the different between Logical complex join and Physical join?

    hi,
    Do somebody know what is the function different between logical complex join in BMM layer and physical join in physical layer?
    Thanks.

    Thank you very much1
    I understand their differentiation:
    In the BMM Complex join (intelligent), means OBI picks the best way from possibly many different ways to join using physical join. FK join forces the same join always, which limits flexibility.

  • What is the different between iPad form us and hong kong store

    i'm form saudi arabi and i want to buy iPad form the apple store.
    what I found is the price is different between the us and hong kong store .
    and i ask if there is any different between these iPad
    best regards

    Should be the same except for the model number. This is in contrast to iPads sold in Saudi, that don't have FaceTime.
    Things to consider. The US Apple stores only ship to US states and territories, and the warranty is only good in these locations.
    Don't know about Hong Kong sales/warranty policies.
     Cheers, Tom

  • What is the difference between System.out.println() and System.out.print()?

    Hi everyone,
    I am only a new comer and know very little about Java. I will appreciate a lot if anyone teaches me what the difference between two method println and print is? Thank you so much.

    The PrintStream class defines a number of print() methods that ... print
    things. System.out is a commonly used PrintStream.
    The difference between the print(...) and println(...) methods is that the
    second one prints a new line at the end. What it actually prints varies
    from system to system: sometimes it will output a '\n' sometimes not.
    There is a system property called line.separator that determines
    how a new line is output.

  • Difference between System.out.println() and out.println()

    Hi,
    In JSP we want to write the JNLP file contents to a ouput stream using "out.printl()".
    The content of the JNLP file i am having in a String.
    The "System.out.println()" is printing the correct JNLP file contents but "out.println()" writing wrong contents which are taken from Server JNLP file.
    How to solve this problem?
    Please guide me in this.
    Thanks and Regards:
    Dheeraj

    Where is the "System.out.println()" running from? I don't think your problem has anything to do with the difference between System.out.println and out.println. Both methods print what is passed to them. It sounds like you are printing two different files because you are running in two different environments.
    JSPs run on a server and only have access to files on the server or on a network the server is on. If you are trying to print a file on a user's system, JSP can't do it.

  • What is the Differance Between AUC Assets & Investment Measure Assets?

    HI,
    1. What is the differance between AUC Assets & Investment Measure Assets? How to settle the Investment Measure AUC assets to main asset?
    2. When i create the Internal Order, The system should automatically creates the Settlement rule for the AUC asset. I dont want to create settlement Rule Manually.
    Kindly help me what should i do if the system wants to create the Settlement Rule Automatically? It would be a great help for me if you can provide some inputs..
    Thanks
    Kishore

    Hi,
    Would like to suggest, if you post this query in Asset Accounting Forum under SDN itself, you would get fast response.
    Regards,

  • Re: What is the different between the NB550D-109 and the NB550D-10G?

    Hello Guys . I need some help about the NB550D. What is the different between the NB550D-109 and the NB550D-10G?? Is just the colour?

    I've checked local and internet shops - strange thing - now, a month after they've started to sell NB550D, in my country (Poland) you can buy only 10J model (with C30) - only green! But the price changed from 1299 to 1199 :)
    And 10G model (blue with C50) disappeared - sold out!!!???

  • What is the different between Sharepoint fast search service and Sql server fulltext search?

    HI ,
    I want to kow what is the different between Sharepoint fast search service and Sql server fulltext search?
    Or Can I abstract the Sharepoint fast search from the Sharepoint platform as a isolate component?
    Thank you.
    James

    They are very, very different beasts.
    Firstly FAST Search for SharePoint is the old name for the product and is only relevant for SharePoint 2010 not 2013. It got merged into the standard SharePoint search for the 2013 release.
    SharePoint search is aimed at providing a Bing or Google like experience for your intranet content, as well as providing some nifty features that are purely SharePoint releated along the way. That means it can crawl SharePoint content, file shares,
    outlook mailboxes, internal and external websites and probably fifty other different things if you really tried. Whilst i'm not an expert on SQL full text search I believe it's intended to provide a search feature for content held within SQL databases
    and tables.
    Can you run SharePoint purely for Search? Yes, definitely.

  • What is the different between statement and preparedstatement?

    hi,
    recently i have attended a telephonic interview. they asked me what is the different between statement and preparedstatement? and when u will use them? Hi! can any one say me the original difference??

    sorry dear,
    i am already shortlisted. and monday is my HR round.
    . Every 1 is not like u.
    So you have read the examples and explanations that you found when you googled, and you have read the javadoc and you still don't understand? And you are shortlisted? For what? I hope you won't do server programming.
    I will give you a few hints.
    Escaping of data
    Storing of dates
    Safer
    Faster

  • What is the different between component and component type in extract struc

    Hi All,
    What is the different between component and component type in the Extract Structure?
    I used them, but I never really know the different between them yet.
    Thanks,
    Grace

    The difference between Component and Component Type are:
    Component This is essentially the field name in the extraction structure. These can either be SAP delivered field names or custom field names (e.g. Y* or Z*).
    Component Type This defines the data definition for the field, along with associated attrributes and descriptions for anything using that Component Type, to define the corresponding Component. If you double-click on any Component Type in an extraction structure, it will show you the definitions that have been setup for that Component Type (will display as Data Element but it's essentially synonymous - Component Type refers to structures and Data Elements refer to tables).

  • What is the different between adobe reader and adobe acrobat reader?

    what is the different between adobe reader and adobe acrobat reader?What are the procedure to download a Acrobat reader?

    Good day,
    Adobe Reader is a free application we offer for viewing and printing PDF files.  Many years ago, it was known as Acrobat Reader.  You may still see some users refer to Adobe Reader as 'Acrobat Reader'.  Old habits are sometimes hard to break!
    You can download Adobe Reader by visiting: http://get.adobe.com/reader/
    Kind regards,
    David
    Adobe Systems

Maybe you are looking for

  • Define Additional Fields for Line Item Display

    Dear gurus, I'd like to ask for your help again, please. I've just added the field BKPF-USNAM to the list of fields of FBL1N using IMG:" Financial Accounting-> Accounts Receivable and Accounts Payable->Vendor Accounts->Line Items-> Display Line Items

  • How to RTP return and get into stock

    In GR we can get RTP into stock by activate one TAB in GR screen at that time 501M movement type will be generate. How to return the RTP stock to vendor? Because that is vendor stock

  • How to create new event in new hard drive

    i brought new mac n im doing editing in fcp x since 2 weeks, so i have only 1 tera hard driveand its almost full. now i need to do lot more. so im thinking to have extra hard drive. n my qestion is that can i use any hard drive or i need to have only

  • Bw Queries Authorizations

    Authorizations Hi all! I have this problem, any help will be welcome! I have 10 queries, 1,2,3,4,5,…..and 10. In SD I have Distribution Channel Object (0DISTR_CHAN). In my company I have Distribution Channel 10, 20. I want to restrict the Query Resul

  • TS4223 Am trying to upload purchased movie to iPad but the is'nt a sync button? Where is it

    Am trying to upload purchased movie from pc to iPad but have ticked boxes of movies wanting to add to iPad but can't find the sync button? Can anyone assist please