there is batch which beginning like this:
@echo OFF
setlocal ENABLEDELAYEDEXPANSION
chcp 65001 >NUL
::
::
if "%1"=="" goto par_mis
if "%2"=="" goto par_mis
if "%3"=="" goto par_mis
under Win7 work fine, but under Windows2003 batch unexpectedly finish
after line:
chcp 65001 >NUL
No error message, %errorlevel% is 0
When i put REM before this command, than work fine.
Any ideas??
L.
Try this: you should get the pause line.
@echo OFF
setlocal ENABLEDELAYEDEXPANSION
chcp 65001 >NUL
pause
--
Regards,
Mic
No change, exact same behaviour...
Do you get anything if you remove the ">NUL" ?
Yes: "Active code page: 65001"
> chcp 65001 >NUL
> under Win7 work fine, but under Windows2003 batch unexpectedly finish
> after line:
Perhaps a year ago I did some experimenting (Windows XP) with Unicode in
the console and you might have seen my scripts posted here. I might have
discussed this problem in some of those messages. I don't now recall the
details but I did find that I could not get CMD to process any scripts
in the UTF-8 code page. I think one or more of those scripts I posted
were designed to help bypass that problem.
Frank
It was probably Windows Vista, but I am uncertian.
> ...and you might have seen my scripts posted here. I might I think one or more of those scripts I posted
> were designed to help bypass that problem.
I think my bypass was used just to print UTF-8 in the console, but
your script could use that method to write itself into an ASCII file
then CALL that file. If you only want to print UTF-8 then the method
might be sufficient. I will.search Google Wednesday for the method
unless you say it is not necessary.
Frank
may I ask you what post you are quote in those two lines??
>> Perhaps a year ago I did some experimenting (Windows XP) with
Unicode >> in the console ...
and
>> ...and you might have seen my scripts posted here. I might I think
>> one or more of those scripts I posted were designed to help bypass
>> that problem.
I did not see the original message in my news reader. Maybe I am lost
some important informations....
thanks P.L.
I'll include that message below my signature. In that message I referred
to a previous discussion in this group; here is that discussion:
http://groups.google.co.uk/group/alt.msdos.batch.nt/browse_thread/thread/0d525c809d4f59d0.
The method from that discussion which might help you is from this
portion:
:: BEGIN SCRIPT :::::::::::::::::::::::::::::::::
CHCP 65001 & CMD /C"Type utf-8.txt" & CHCP 437
:: END SCRIPT :::::::::::::::::::::::::::::::::::
More script may be before and after.
Frank
"Petr Laznovsky" news:i7vjsq$4cu$1...@ns.felk.cvut.cz...
> chcp 65001 >NUL
> under Win7 work fine, but under Windows2003 batch unexpectedly finish
> after line:
Perhaps a year ago I did some experimenting (Windows XP) with Unicode in
the console and you might have seen my scripts posted here. I might have
discussed this problem in some of those messages. I don't now recall the
details but I did find that I could not get CMD to process any scripts
in the UTF-8 code page. I think one or more of those scripts I posted
were designed to help bypass that problem.
Frank
"Petr Laznovsky" news:i8fh4u$2mcp$1...@ns.felk.cvut.cz...
> I did not see the original message in my news reader. Maybe I am lost
> some important informations....
I'll include that message below my signature. In that message I
referred
to a previous discussion in this group; here is that discussion:
http://groups.google.co.uk/group/alt.msdos.batch.nt/browse_thread/thread/0d525c809d4f59d0.
The method from that discussion which might help you is from this
portion:
:: BEGIN SCRIPT :::::::::::::::::::::::::::::::::
CHCP 65001 & CMD /C"Type utf-8.txt" & CHCP 437
:: END SCRIPT :::::::::::::::::::::::::::::::::::
More script may be before and after.
Frank
"Petr Laznovsky" news:i7vjsq$4cu$1...@ns.felk.cvut.cz...
> chcp 65001 >NUL
> under Win7 work fine, but under Windows2003 batch unexpectedly finish
> after line:
Perhaps a year ago I did some experimenting (Windows XP) with Unicode
in
the console and you might have seen my scripts posted here. I might
have
discussed this problem in some of those messages. I don't now recall
the
details but I did find that I could not get CMD to process any scripts
in the UTF-8 code page. I think one or more of those scripts I posted
were designed to help bypass that problem.
Frank