Codificacion charset oracle python. insert caracteres especiales en oracle python

os.environ[‘NLS_LANG’] = ‘AMERICAN_AMERICA.UTF8’

http://www.oracle.com/technetwork/articles/dsl/tuininga-cx-oracle-084866.html

https://sourceforge.net/p/cx-oracle/mailman/message/27473780/

Ejemplo tomado

import os
import cx_Oracle

os.environ[‘NLS_LANG’] = ‘AMERICAN_AMERICA.UTF8’
utf8_conn = cx_Oracle.connect(‘dana’, ‘pw’, ‘utf8db’)
print utf8_conn.encoding
s = utf8_conn.cursor().execute(‘SELECT :s AS str FROM dual’,
s=u’d\u00e4t\u00e4′).fetchone()[0]
print s, type(s), len(s), len(s.encode(‘utf8’))

utf8_conn.close()

os.environ[‘NLS_LANG’] =’AMERICAN_AMERICA.WE8ISO8859P1′
latin1_conn = cx_Oracle.connect(‘dana’, ‘pw’, ‘latin1db’)
print latin1_conn.encoding
s = latin1_conn.cursor().execute(‘SELECT :s AS str FROM dual’,
s=’d\xe4t\xe4′).fetchone()[0].decode(‘latin1’)
print s, type(s), len(s), len(s.encode(‘latin1’))

Anuncios

Sincronizar directorio ftp con rsync en linux

http://askubuntu.com/questions/34868/how-do-i-back-up-via-ftp-and-rsync

 

yum install glib2-devel  yum install fuse-devel  yum install libcurl-devel  wget http://sourceforge.net/projects/curlftpfs/files/latest/download  tar xvzf curlftpfs-0.9.2.tar.gz  cd curlftpfs-0.9.2  ./configure  make  make install

Obteenr informacion del hardware en linux

Infom de HDD
https://geekytheory.com/6-comandos-para-obtener-informacion-sobre-hardware-en-linux

http://blog.desdelinux.net/comandos-para-conocer-el-sistema-identificar-hardware-y-algunas-configuraciones-de-software

https://www.linuxtotal.com.mx/?cont=info_admon_015

Ejecuciones diferidas en jquery

http://www.arkaitzgarro.com/jquery/capitulo-12.html

acceder servicio soap desde Jquery

https://github.com/doedje/jquery.soap

Angular 2

https://github.com/sitepoint-editors/angular2-todo-app
http://hat.hexacta.com/primeros-pasos-con-angular-2/

 

http://estynedwards.com/blog/2015/12/04/getting%20started%20with%20angular%202/

http://prideparrot.com/blog/archive/2015/8/how_to_create_an_awesome_hybrid_mobile_app

Cordova desarrollo

https://www.toptal.com/mobile/developing-mobile-applications-with-apache-cordova
https://github.com/fpetkovski/toptal-cordova/tree/master/platforms/android

Patron de diseño cordova

https://ccoenraets.github.io/cordova-tutorial/setup-files.html

https://asanzdiego.github.io/curso-javascript-avanzado-2015/slides/export/javascript-avanzado.html

http://stackoverflow.com/questions/26604952/a-simple-cordova-android-example-including-sqlite-read-write-and-search