Project

Profile

Help

Revision 96664dff

Added by Vincent Le Goff about 3 years ago

Fix the bug, but doesn't handle well other encodings yet

View differences:

src/world.py
152 152
        """).strip("\n")
153 153

  
154 154
        if self.settings is None:
155
            self.settings = ConfigObj(spec.split("\n"))
155
            self.settings = ConfigObj(spec.split("\n"), encoding="latin-1")
156 156

  
157 157
        connection = self.settings["connection"]
158 158
        connection["name"] = self.name
......
330 330
    @classmethod
331 331
    def get_infos(cls, configuration):
332 332
        """Get the information in the configuration and return a dict."""
333
        config = ConfigObj(StringIO(configuration))
333
        config = ConfigObj(StringIO(configuration), encoding="latin-1")
334 334
        data = {}
335 335

  
336 336
        for key, value in config.items():

Also available in: Unified diff