@@ -106,11 +106,11 @@ @throw [OFInitializationFailedException exceptionWithClass: [self class]]; _target = [[OFString alloc] initWithCString: buffer - encoding: OF_STRING_ENCODING_NATIVE]; + encoding: [OFString nativeOSEncoding]]; } @catch (id e) { [self release]; @throw e; } @@ -216,11 +216,11 @@ @throw [OFAddressTranslationFailedException exceptionWithHost: _domain]; answer = [self allocMemoryWithSize: pageSize]; answerLen = res_nsearch(&_resState, - [request cStringWithEncoding: OF_STRING_ENCODING_NATIVE], + [request cStringWithEncoding: [OFString nativeOSEncoding]], ns_c_in, ns_t_srv, answer, (int)pageSize); if ((answerLen == -1) && ((h_errno == HOST_NOT_FOUND) || (h_errno == NO_DATA))) return;