Message Oracle LPX-00275 - cant set output/data encoding AFTER parsing

ERRORcant set output/data encoding AFTER parsing
CAUSEOutput/data encoding must be set after initialization but BEFORE any parsing has taken place.
ACTIONSet encoding before parsing any documents.