def legacy_page(request, encoding, title, aliases): first, last = (0x00, 0xFF) chars = [] for i in xrange(0xFF): try: char = ord(chr(i).decode(encoding)) except UnicodeDecodeError: char = 0 chars.append(char) columns = rowize([UnicodeChar(i) for i in chars], COLS) col_heads = ['%x'%(i%0x10) for i in range(COLS)] return render_to_response('chartable.django.html', locals())
def block_page(request, first): first = int(first, 16) last, title = block_firsts[first] columns = rowize([UnicodeChar(i) for i in xrange(first, last+1)], COLS) col_heads = ['%x'%(i%0x10) for i in range(COLS)] return render_to_response('chartable.django.html', locals())