netsurf/amiga/utf8.h
Chris Young 4750d11a6b Added support code to allow CSET chunks to be read from clipboard IFF FTXT and
converted as necessary.  Added option to write UTF-8 direct to clipboard, setting CSET
appropriately.  Copying and pasting to/from webpages that are not in local charset and
to/from other applications that set CSET when not using local charset, should now work
correctly if clipboard_write_utf8 is set in the options.  If not set, NetSurf will
still convert from the charset specified in the clipboard when pasting, but will
convert text to local charset and not write a CSET chunk for copy operations.


svn path=/trunk/netsurf/; revision=5231
2008-09-03 22:10:30 +00:00

25 lines
886 B
C
Executable File

/*
* Copyright 2008 Chris Young <chris@unsatisfactorysoftware.co.uk>
*
* This file is part of NetSurf, http://www.netsurf-browser.org/
*
* NetSurf is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; version 2 of the License.
*
* NetSurf is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef AMIGA_UTF8_H
#define AMIGA_UTF8_H
char *ami_utf8_easy(char *string);
void ami_utf8_free(char *ptr);
char *ami_to_utf8_easy(char *string);
#endif