Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to convert UTF-8 character to ISO8859-1 character

293 views
Skip to first unread message

moonhkt

unread,
Oct 4, 2009, 10:35:24 PM10/4/09
to
Hi All
How to convert UTF-8 character to ISO8859-1 character by windows xp
by background process ?

I have a text file which is UTF-8 format, but my database can not
support UTF-8, We need to convert to ISO8859-1 format by IE or UTF-8
editor . So that we can import/export those UTF-8 file.
Any program can convert in background UTF8 to ISO8859-1 ?

moonhkt

Bernd

unread,
Oct 5, 2009, 9:55:39 AM10/5/09
to

ju.c

unread,
Oct 6, 2009, 3:18:52 AM10/6/09
to

Creating a right-click command to convert a UTF-8 text file to ANSI.


Directions:
- Make a REGISTRY FILE.
- Make a BATCH FILE.
- DOWNLOAD iconv.exe.


REGISTRY FILE:

1. Copy below and paste into Notepad.

----------copy-inside-only----------
REGEDIT4

[HKEY_CLASSES_ROOT\txtfile\shell\UTF82ANSI]
@="Convert UTF-8 to ANSI"

[HKEY_CLASSES_ROOT\txtfile\shell\UTF82ANSI\command]
@="C:\\Program Files\\Office\\UTF82ANSI.bat\" \"%1\"\""

----------copy-inside-only----------

2. Change the path and name to yours.

3. Save-as utf8ansi.reg.

4. Double-click or right-click and merge into the registry.


BATCH FILE:

1. Copy below and paste into Notepad.

----------code----------
"C:\Program Files\Office\iconv.exe" -c -f UTF-8 -t ASCII %1 >"%~n1_ansi.txt"
CLS
EXIT
----------code----------

2. Change the path to yours.

3. Save-as utf8ansi.bat.

4. Move utf8ansi.bat to the path you entered in the registry file above.


DOWNLOAD:

iconv-1.9.2.win32.zip 1.26 MB
Web: http://www.zlatkovic.com/pub/libxml
Download: http://www.zlatkovic.com/pub/libxml/iconv-1.9.2.win32.zip


ju.c


"moonhkt" <moo...@gmail.com> wrote in message news:df4fce14-210e-46ec...@u36g2000prn.googlegroups.com...

moonhkt

unread,
Oct 6, 2009, 9:08:15 PM10/6/09
to
Tried. Not Work.

Window prompted "Access is Denied".

> "moonhkt" <moon...@gmail.com> wrote in messagenews:df4fce14-210e-46ec...@u36g2000prn.googlegroups.com...


> > Hi All
> > How to convert UTF-8 character to ISO8859-1 character by windows xp
> > by background process ?
>
> > I have a text file which is UTF-8 format, but my database can not
> > support UTF-8, We need to convert to ISO8859-1 format by IE or UTF-8
> > editor . So that we can import/export those UTF-8 file.
> > Any program can convert in background UTF8 to ISO8859-1 ?
>

> > moonhkt- 隱藏被引用文字 -
>
> - 顯示被引用文字 -

ju.c

unread,
Oct 7, 2009, 5:34:21 AM10/7/09
to
I made a booboo. Change all "UTF82ANSI" to "UTF8ANSI".

Fixed, try it again:

Creating a right-click command to convert a UTF-8 text file to ANSI.


Directions:
- Make a REGISTRY FILE.
- Make a BATCH FILE.
- DOWNLOAD iconv.exe.


REGISTRY FILE:

1. Copy below and paste into Notepad.

----------copy-inside-only----------
REGEDIT4

[HKEY_CLASSES_ROOT\txtfile\shell\UTF8ANSI]


@="Convert UTF-8 to ANSI"

[HKEY_CLASSES_ROOT\txtfile\shell\UTF8ANSI\command]
@="C:\\Program Files\\Office\\UTF8ANSI.bat\" \"%1\"\""

----------copy-inside-only----------

2. Change the path and name to yours.

3. Save-as utf8ansi.reg.

4. Double-click or right-click and merge into the registry.


BATCH FILE:

1. Copy below and paste into Notepad.

----------code----------
"C:\Program Files\Office\iconv.exe" -c -f UTF-8 -t ASCII %1 >"%~n1_ansi.txt"
CLS
EXIT
----------code----------

2. Change the path to yours.

3. Save-as utf8ansi.bat.

4. Move utf8ansi.bat to the path you entered in the registry file above.


DOWNLOAD:


ju.c


"moonhkt" <moo...@gmail.com> wrote in message news:f8c6d174-a5c3-4708...@m3g2000pri.googlegroups.com...

ju.c

unread,
Oct 8, 2009, 4:11:58 AM10/8/09
to
This utility has less options but is easier to use:

StringConverter <100 KB (Freeware)
http://www.gbordier.com/gbtools/stringconverter.htm


ju.c


"ju.c" <bibidybu...@mailinator.com> wrote in message news:#U6WdFzR...@TK2MSFTNGP06.phx.gbl...

0 new messages