miércoles, 23 de noviembre de 2022

 leer archivo xml problemas til y encode

XmlDocument xmlDocument = new XmlDocument();
 StreamReader reader = new StreamReader(filePath);
 xmlDocument.Load(reader);
 reader.Close();

fuente: https://stackoverflow.com/questions/51873880/c-sharp-xmldocument-loadstring-fails-when-encoding-for-file-is-unicode

miércoles, 2 de noviembre de 2022

Conectar sql sin base de datos

 Private conex_string As String = "Server=1.1.1.1;Integrated security=SSPI;database=master"

https://learn.microsoft.com/en-us/troubleshoot/developer/visualstudio/csharp/language-compilers/create-sql-server-database-programmatically

https://www.c-sharpcorner.com/article/create-a-sql-server-database-dynamically-in-C-Sharp/

viernes, 7 de octubre de 2022

encoding iso 8859-1

 

Dim str "=?iso-8859-1?Q?Gu=EDa_de_Despacho_Electr=F3nica_n=FAmero_5219877_del_04=2F10=2F2022_emi?="

 Dim att As System.Net.Mail.Attachment = System.Net.Mail.Attachment.CreateAttachmentFromString("", str)

        Dim test As String = att.Name


https://stackoverflow.com/questions/4106960/c-sharp-email-subject-parsing

https://stackoverflow.com/questions/2226554/c-class-for-decoding-quoted-printable-encoding

https://www.ic.unicamp.br/~stolfi/EXPORT/www/ISO-8859-1-Encoding.html


jueves, 18 de agosto de 2022

string numbers to array integer

 Dim test() As Integer = str.Split(";").Select(Function(x) CInt(x)).ToArray