riesenia / pohoda

XML generator a parser pre Pohodu
34 stars 30 forks source link

how to set custom encoding #12

Closed Ciki closed 5 years ago

Ciki commented 5 years ago

Hi, I'd like to set custom encoding (utf-8). What is the best way to do it? It's being set on 2 places currently

segy commented 5 years ago

Hi

first one is simple - similar to setting the application attribute. But since this is also used in Agenda, I'd suggest a public static property (you can see Pohoda::$namespaces are used there). Please set it to windows-1250 by default for backward compatibility.