Java tutorial
//package com.java2s; //License from project: Open Source License import java.io.PrintWriter; public class Main { /** * Write XML header (UTF-8). * * @param out * The writer. */ public static void writeXmlHeader(PrintWriter out) { out.print("<?xml version=\"1.0\" encoding=\"UTF-8\"?>"); } }