Hello:
For example I have a file encoded in ANSI like this opened in a "Program Window" :
CREATE OR REPLACE FUNCTION test RETURN VARCHAR2 IS
functionresult VARCHAR2;
BEGIN
functionresult := 'áéíóú';
RETURN(functionresult);
END test;
When option "Change Window to -> SQL Window" is used the text is corrupted like this:
functionresult := '�����';
If it helps, I have it set in "Preferences -> Format -> Encoding -> Autodetect (ANSI or UTF8)"
Best Regards

For example I have a file encoded in ANSI like this opened in a "Program Window" :
CREATE OR REPLACE FUNCTION test RETURN VARCHAR2 IS
functionresult VARCHAR2;
BEGIN
functionresult := 'áéíóú';
RETURN(functionresult);
END test;
When option "Change Window to -> SQL Window" is used the text is corrupted like this:
functionresult := '�����';
If it helps, I have it set in "Preferences -> Format -> Encoding -> Autodetect (ANSI or UTF8)"
Best Regards

