Ejemplo n.º 1
0
        /// <summary>
        /// Gets the encoding for the specified code page.
        /// </summary>
        /// <param name="codePage">
        /// The code page.
        /// </param>
        /// <returns>
        /// The <see cref="Encoding"/> for the specified code page.
        /// </returns>
        public static Encoding GetEncoding(int codePage)
        {
            Charset charset = GetCharset(codePage);

            return(charset.GetEncoding());
        }
Ejemplo n.º 2
0
        public static Encoding GetEncoding(string name)
        {
            Charset charset = Charset.GetCharset(name);

            return(charset.GetEncoding());
        }