143 Public method to get the imported bookmarks. |
143 Public method to get the imported bookmarks. |
144 |
144 |
145 @return imported bookmarks (BookmarkNode) |
145 @return imported bookmarks (BookmarkNode) |
146 """ |
146 """ |
147 try: |
147 try: |
148 f = open(self.__fileName, "r") |
148 f = open(self.__fileName, "r", encoding="utf-8") |
149 contents = f.read() |
149 contents = f.read() |
150 f.close() |
150 f.close() |
151 except IOError as err: |
151 except IOError as err: |
152 self._error = True |
152 self._error = True |
153 self._errorString = self.trUtf8("File '{0}' cannot be read.\nReason: {1}")\ |
153 self._errorString = self.trUtf8("File '{0}' cannot be read.\nReason: {1}")\ |