UTF-8 on Windows

This is a discussion on UTF-8 on Windows within the awk forums in Programming Languages category; Hey, I am writing a gawk script to parse some files encoded using en_US.UTF-8 and writing the output to another file. My script is able to parse the files correctly, but the output of the script is in ANSI character set instead of UTF-8. How can I get the output in UTF-8? I am using Gawk version 3.0.3. Thanks, Sam...

Go Back   Application Development Forum > Programming Languages > awk

Object Mix

Register FAQ Calendar Search Today's Posts Mark Forums Read
  #1  
Old 08-04-2008, 07:14 PM
soft.dev.bec@gmail.com
Guest
 
Default UTF-8 on Windows

Hey,

I am writing a gawk script to parse some files encoded using
en_US.UTF-8 and writing the output to another file.

My script is able to parse the files correctly, but the output of the
script is in ANSI character set instead of UTF-8. How can I get the
output in UTF-8?

I am using Gawk version 3.0.3.

Thanks,

Sam
Reply With Quote
  #2  
Old 08-05-2008, 04:14 AM
Hermann Peifer
Guest
 
Default Re: UTF-8 on Windows

soft.dev.bec@gmail.com wrote:
> Hey,
>
> I am writing a gawk script to parse some files encoded using
> en_US.UTF-8 and writing the output to another file.
>
> My script is able to parse the files correctly, but the output of the
> script is in ANSI character set instead of UTF-8. How can I get the
> output in UTF-8?
>
> I am using Gawk version 3.0.3.
>



I'd recommend to use a newer version of Gawk. According to the ChangeLog, version 3.0.3 is more than 11 years old:

> Thu May 15 12:49:08 1997 Arnold D. Robbins <arnold@skeeve.atl.ga.us>
>
> * Release 3.0.3: Release tar file made.



Hermann
Reply With Quote
Reply


Thread Tools
Display Modes


All times are GMT -5. The time now is 07:10 AM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
vB Ad Management by =RedTyger=

In an effort to better serve ads to our visitors, cookies are used on objectmix.com. For more information, check out our Privacy Policy.