Displaying 2 results from an estimated 2 matches for "convert_set_charset".
2005 Sep 27
2
vorbiscomment, ogg123 charset bug - ticket #685
Hi
I've a bug in vorbis-tools's libutf8 - some share/*.[ch] files don't include config.h; as a result, utf8.c:convert_set_charset doesn't try charset = nl_langinfo(CODESET) which would correctly return UTF-8, because HAVE_LANGINFO_CODESET isn't defined (it's defined in config.h, but config.h is not included). So, the bugfix is simple - just include config.h everywhere where it's missing.
--
The human knowled...
2001 Sep 30
3
UTF-8 stuff
...ted exactly
+ * 1 : valid data was converted approximately (using '?')
+ * 2 : input was invalid (but still converted, using '#')
+ * 3 : unknown encoding (but still converted, using '?')
*/
-typedef struct
-{
- char* name;
- int mapping[256];
-} charset_map;
+void convert_set_charset(const char *charset);
-charset_map *get_map(const char *encoding);
-char *make_utf8_string(const unsigned short *unicode);
-int simple_utf8_encode(const char *from, char **to, const char *encoding);
-int utf8_encode(char *from, char **to, const char *encoding);
+int convert_to_utf8(const char *fr...