Can I configure codepage / encoding for captured output

Help with setting up and configuring custom user tools in UltraEdit (based on command line input)

Can I configure codepage / encoding for captured output

Postby handyjan » Fri Sep 26, 2008 4:19 am

Hi,

I am setting up UltraEdit to query a MSSQL 2005 database, using sqlcmd.exe from the tools configuration.

I am able to get the query running, and also I can capture the output to a new file. It seems however, that the output encoding or codepage differs from the one I see, when i fire the command in a DOS box. I need UltraEdits output window to return output, using the same codepage / encoding I use from my system locale (Windows 1252 Danish).

I have tried multiple approaches, like setting the codepage/locale in the advanced menu, but I have had no luck so far.

Can anyone help me with this?

Thank you in advance.
Jan
handyjan
Newbie
 
Posts: 2
Joined: Fri Sep 26, 2008 4:06 am

Re: Can I configure codepage / encoding for captured output

Postby jorrasdk » Fri Sep 26, 2008 4:57 am

I have no one time solution to offer, but my workaround to get the encoding fixed whenever I have captured from DOS output into Windows is to use the UE convert:

File - Conversions - OEM to ANSI

(this way I get my captured Danish letters æøåÆØÅ back into readable form)
User avatar
jorrasdk
Master
Master
 
Posts: 275
Joined: Mon Mar 19, 2007 11:00 pm
Location: Denmark

Re: Can I configure codepage / encoding for captured output

Postby handyjan » Fri Sep 26, 2008 5:14 am

@jorrasdk

Thanks for the advice, sometimes "the obvious" is a good solution :P

The slightly more persistent solution could perhaps be to record a macro that fires the sqlcmd tool and then makes the conversion. I will look into that.

Thank you!

Jan
handyjan
Newbie
 
Posts: 2
Joined: Fri Sep 26, 2008 4:06 am


Return to Custom User Tools/Tool Configuration