View | Details | Raw Unified | Return to bug 137051
Collapse All | Expand All

(-)lib/ofx_preproc.cpp (-1 / +11 lines)
Lines 151-157 Link Here
151
		  fromcode=LIBOFX_DEFAULT_INPUT_ENCODING;
151
		  fromcode=LIBOFX_DEFAULT_INPUT_ENCODING;
152
		}
152
		}
153
	      }
153
	      }
154
	      else if(ofx_encoding.compare("USASCII")==0) {
154
	      else if(ofx_encoding.compare("UTF-8")==0) {
155
		fromcode="UTF-8";
155
		fromcode="UTF-8";
156
	      }
156
	      }
157
	      else
157
	      else
Lines 170-175 Link Here
170
	      header_name.assign(s_buffer.substr(0,header_separator_idx));
170
	      header_name.assign(s_buffer.substr(0,header_separator_idx));
171
	      header_value.assign(s_buffer.substr(header_separator_idx+1));
171
	      header_value.assign(s_buffer.substr(header_separator_idx+1));
172
	      message_out(DEBUG,"ofx_proc_file():Header: "+header_name+" with value: "+header_value+" has been found");
172
	      message_out(DEBUG,"ofx_proc_file():Header: "+header_name+" with value: "+header_value+" has been found");
173
174
	      if((header_separator_idx = header_value.find('\r', 0))
175
		 != std::string::npos)
176
		header_value.resize(header_separator_idx);
177
178
	      if((header_separator_idx = header_value.find('\n', 0))
179
		 != std::string::npos)
180
		header_value.resize(header_separator_idx);
181
	      
182
173
	      if(header_name.compare("ENCODING")==0) {
183
	      if(header_name.compare("ENCODING")==0) {
174
		ofx_encoding.assign(header_value);
184
		ofx_encoding.assign(header_value);
175
	      }
185
	      }

Return to bug 137051