Fan.Sys.Charset.utf8 C# (CSharp) Méthode

utf8() public static méthode

public static utf8 ( ) : Charset
Résultat Charset
        public static Charset utf8()
        {
            if (m_utf8 == null) m_utf8 = new Utf8Charset();
              return m_utf8;
        }

Usage Example

Exemple #1
0
        public virtual OutStream writeProps(Map props, bool cls)
        {
            Charset origCharset = charset();

            charset(Charset.utf8());
            try
            {
                List keys = props.keys().sort();
                int  size = keys.sz();
                long eq   = '=';
                long nl   = '\n';
                for (int i = 0; i < size; ++i)
                {
                    string key = (string)keys.get(i);
                    string val = (string)props.get(key);
                    writePropStr(key);
                    writeChar(eq);
                    writePropStr(val);
                    writeChar(nl);
                }
                return(this);
            }
            finally
            {
                try { if (cls)
                      {
                          close();
                      }
                } catch (System.Exception e) { Err.dumpStack(e); }
                charset(origCharset);
            }
        }
All Usage Examples Of Fan.Sys.Charset::utf8